finishing first step of serialization : the basics
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
#include <Engine/Class.h>
|
||||
|
||||
#define DECLARE_ENTITY() \
|
||||
Entity* base; \
|
||||
static Class* kind;
|
||||
Entity* base; \
|
||||
DECLARE_CLASS()
|
||||
|
||||
#define DEFINE_ENTITY_VERSIONED(entity, version, serialize_fct) \
|
||||
constexpr Class entityKind##entity = MakeClass(ConstString(#entity), (uint8)Entity_Type::entity, (version), \
|
||||
@@ -22,7 +22,7 @@ using EntityID = uint64_t;
|
||||
|
||||
struct Entity final
|
||||
{
|
||||
static Class* kind;
|
||||
DECLARE_CLASS()
|
||||
|
||||
EntityID ID = 0;
|
||||
Class* derived_kind = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user