DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
Deki::ComponentTypeInfo Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ baseTypeId

ComponentType Deki::ComponentTypeInfo::baseTypeId

◆ create

Component *(*) Deki::ComponentTypeInfo::create()

◆ declaresUpdate

bool Deki::ComponentTypeInfo::declaresUpdate

◆ deserialize

bool(*) Deki::ComponentTypeInfo::deserialize(Component *self, SceneFormat::SceneMsgPackParser &parser, uint32_t mapSize)

◆ fieldCount

int Deki::ComponentTypeInfo::fieldCount

◆ fields

const FieldRef* Deki::ComponentTypeInfo::fields

◆ isAbstract

bool Deki::ComponentTypeInfo::isAbstract

◆ meta

const ComponentMeta* Deki::ComponentTypeInfo::meta

◆ name

const char* Deki::ComponentTypeInfo::name

◆ remapObjectRefs

void(*) Deki::ComponentTypeInfo::remapObjectRefs(Component *self, const std::unordered_map< uint32_t, uint32_t > &idRemap)

◆ resolveObjectRefs

void(*) Deki::ComponentTypeInfo::resolveObjectRefs(Component *self, Scene *scene)

◆ shortName

const char* Deki::ComponentTypeInfo::shortName

◆ typeId

ComponentType Deki::ComponentTypeInfo::typeId

The documentation for this struct was generated from the following file: