finishing first step of serialization : the basics

This commit is contained in:
2026-09-07 19:42:15 -04:00
parent a462575af4
commit b1de6ccc49
8 changed files with 406 additions and 110 deletions
+3 -3
View File
@@ -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;