Auki::ConjureKit::EntityComponent
Represents a component in HECS (Hagall Entity Component System) - labels an entity as possessing a particular aspect, and holds the data needed to model that aspect.
Public Functions
Name | |
---|---|
EntityComponent(uint componentTypeId, uint entityId, byte[] data) Constructor. |
Public Attributes
Name | |
---|---|
uint | ComponentTypeId Component type id. |
uint | EntityId Entity id to which the EntityComponent is attached. |
byte[] | Data EntityComponent data in byte encoded array. |
Public Functions Documentation
function EntityComponent
EntityComponent(
uint componentTypeId,
uint entityId,
byte[] data
)
Constructor.
Parameters:
- componentTypeId Component type id
- entityId Entity id
- data Byte encoded array
Public Attributes Documentation
variable ComponentTypeId
uint ComponentTypeId;
Component type id.
variable EntityId
uint EntityId;
Entity id to which the EntityComponent is attached.
variable Data
byte[] Data;
EntityComponent data in byte encoded array.