work on world
This commit is contained in:
@@ -4,6 +4,13 @@
|
||||
#include "stdint.h"
|
||||
#include "datamap.h"
|
||||
|
||||
template <typename T>
|
||||
class CNetworkVarBase
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
|
||||
struct netfield_t
|
||||
{
|
||||
const char *m_szName;
|
||||
@@ -20,6 +27,7 @@ struct netmap_t
|
||||
};
|
||||
|
||||
#define NetPropInt(name) { #name, FIELD_INT, _class_offsetof(ThisClass, name), sizeof(name)}
|
||||
#define NetPropString(name) { #name, FIELD_STRING, _class_offsetof(ThisClass, name), sizeof(name)}
|
||||
#define NetPropFloat(name) { #name, FIELD_FLOAT, _class_offsetof(ThisClass, name), sizeof(name)}
|
||||
#define NetPropFloat3(name) \
|
||||
NetPropFloat(name.x), \
|
||||
|
||||
Reference in New Issue
Block a user