DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Deki::FieldRef Struct Reference

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

Detailed Description

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).

Member Data Documentation

◆ nameHash

uint32_t Deki::FieldRef::nameHash

◆ offset

uint16_t Deki::FieldRef::offset

◆ type

uint8_t Deki::FieldRef::type

◆ enumSize

uint8_t Deki::FieldRef::enumSize

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