|
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
|
Everything the engine knows about one component class. More...
#include <deki/Component.h>
Public Attributes | |
| ComponentType | baseTypeId |
| Component *(*) | create () |
| bool | declaresUpdate |
| bool(*) | deserialize (Component *self, SceneFormat::SceneMsgPackParser &parser, uint32_t mapSize) |
| int | fieldCount |
| const FieldRef * | fields |
| bool | isAbstract |
| const ComponentMeta * | meta |
| const char * | name |
| void(*) | remapObjectRefs (Component *self, const std::unordered_map< uint32_t, uint32_t > &idRemap) |
| void(*) | resolveObjectRefs (Component *self, Scene *scene) |
| const char * | shortName |
| ComponentType | typeId |
Everything the engine knows about one component class.
The reflection codegen emits one per class into the owning package's generated sources, and it is registered with ComponentFactory at startup. Each instance points at its class's entry (Component::GetTypeInfo), which is how GetType(), Deserialize() and the reference fixups work without the class declaring anything itself.
All strings are literals with static storage.
| ComponentType Deki::ComponentTypeInfo::baseTypeId |
| Component *(*) Deki::ComponentTypeInfo::create() |
| bool Deki::ComponentTypeInfo::declaresUpdate |
| bool(*) Deki::ComponentTypeInfo::deserialize(Component *self, SceneFormat::SceneMsgPackParser &parser, uint32_t mapSize) |
| int Deki::ComponentTypeInfo::fieldCount |
| const FieldRef* Deki::ComponentTypeInfo::fields |
| bool Deki::ComponentTypeInfo::isAbstract |
| const ComponentMeta* Deki::ComponentTypeInfo::meta |
| const char* Deki::ComponentTypeInfo::name |
| void(*) Deki::ComponentTypeInfo::remapObjectRefs(Component *self, const std::unordered_map< uint32_t, uint32_t > &idRemap) |
| const char* Deki::ComponentTypeInfo::shortName |
| ComponentType Deki::ComponentTypeInfo::typeId |