Serialization : started to unify how to allocate entity whether its from MakeEntity or during deserialization.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include <Entity/entity_common.h>
|
||||
|
||||
#include <Entity/Entity.h>
|
||||
#include <Entity/entity_types.h>
|
||||
|
||||
// clang-format off
|
||||
#define AS_STR(name) #name
|
||||
const char* kEntity_type_names[] = {
|
||||
ENTITY_TYPE_LIST(AS_STR)
|
||||
"Count"
|
||||
};
|
||||
#undef AS_STR
|
||||
|
||||
#define AS_CLASS(name) name::kind
|
||||
const Class* kEntity_type_class_ptr[]
|
||||
{
|
||||
ENTITY_TYPE_LIST(AS_CLASS)
|
||||
nullptr
|
||||
};
|
||||
#undef AS_CLASS
|
||||
// clang-format on
|
||||
Reference in New Issue
Block a user