Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::EntityContainer Struct Reference

Classes

struct  EntityData
 

Public Member Functions

void req_del ()
 

Static Public Member Functions

static GAIA_NODISCARD EntityContainer create (uint32_t index, uint32_t generation, void *pCtx)
 
static GAIA_NODISCARD Entity handle (const EntityContainer &ec)
 

Public Attributes

uint32_t idx
 Allocated items: Index in the list. Deleted items: Index of the next deleted item in the list.
 
union { 
 
   EntityData   data 
 
   uint32_t   dataRaw 
 
};  
 
uint16_t row
 Row at which the entity is stored in the chunk.
 
uint16_t flags = 0
 Flags.
 
uint32_t unused = 0
 Currently unused area.
 
ArchetypepArchetype
 Archetype (stable address)
 
ChunkpChunk
 Chunk the entity currently resides in (stable address)
 
const EntitypEntity = nullptr
 Cached pointer to the entity's current slot inside the owning chunk.
 

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