FieldEdit struct

Public static variables

static size_t kMaxValueSize constexpr

Public static functions

template<typename T>
static auto Make(EntityHandle entity, ComponentTypeID component, uint8_t fieldIndex, const T& value) -> FieldEdit
Build an edit writing value (a field-sized trivially copyable type).

Public variables

EntityHandle Entity
Target entity.
ComponentTypeID Component
Component type the field belongs to.
uint8_t FieldIndex
Field index within the component (declaration order).
uint8_t ValueSize
Bytes used in Value; must equal the field's size.
uint8_t Value