Callbacks are done - maybe ill add a few more later - i dont know if they will work correctly yet Fixed the Serialization class Added internal tags - for now it only has CONNECT and DISCONNECT - maybe ill add more later Fixed some data type parameters in some functions
16 lines
290 B
C++
16 lines
290 B
C++
#ifndef SERIALIZER_HPP
|
|
#define SERIALIZER_HPP
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "Defs.hpp"
|
|
|
|
struct Serializer
|
|
{
|
|
template<typename T> static const std::vector<byte> &to_bytes(const T &object);
|
|
template<typename T> static const T &from_bytes(byte *bytes, T &object);
|
|
};
|
|
|
|
#endif |