|
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
|
Compact field descriptor, the one piece of reflection on every platform. More...
#include <deki/reflection/Property.h>
Public Attributes | |
| uint32_t | nameHash |
| uint16_t | offset |
| uint8_t | type |
| uint8_t | enumSize |
Compact field descriptor, the one piece of reflection on every platform.
PropertyInfo (below) is the editor's full metadata and is compiled only under DEKI_EDITOR; it costs too much flash for a device. Devices still need to know where field X of component Y lives and its type, for data-driven systems (a state machine writing a property, a tween driving a field). This struct says that in 8 bytes per field, in flash.
Codegen emits one flat table per concrete component (own and inherited fields) and registers it with ComponentRegistry::RegisterFields on all platforms. Look a field up with ComponentRegistry::FindField(typeId, nameHash).
| uint32_t Deki::FieldRef::nameHash |
| uint16_t Deki::FieldRef::offset |
| uint8_t Deki::FieldRef::type |
| uint8_t Deki::FieldRef::enumSize |