|
ecsnet
|
Storage container for a single component type. Each registered component type gets its own storage structure. It contains: More...
#include <ecs_internal.h>

Public Attributes | |
| component_descriptor_t | descriptor |
| void * | data |
| bool * | used |
| bool * | is_dirty |
| size_t | capacity |
Storage container for a single component type. Each registered component type gets its own storage structure. It contains:
| size_t component_storage_t::capacity |
Current capacity for entity slots (matches ecs->entity_capacity).
| void* component_storage_t::data |
Contiguous memory storing component data for all entities.
| component_descriptor_t component_storage_t::descriptor |
Metadata describing the component type.
| bool* component_storage_t::is_dirty |
Dynamic array indicating which components have been modified.
| bool* component_storage_t::used |
Dynamic array indicating which entities have this component.