xecs.EntityId#
- class xecs.EntityId[source]#
Bases:
Component
A component that stores the entity id.
Methods
Create a preallocated pool of components.
Attributes
Maps each component type to a unique ID.
The entity id.
- classmethod create_pool(capacity)#
Create a preallocated pool of components.
- Parameters:
capacity (int) – The maximum number of components the pool can hold.
- Returns:
The component pool.
- Return type: