ecsnet
Loading...
Searching...
No Matches
ecs_t Struct Reference

Internal structure representing the ECS world state. This holds: More...

#include <ecs_internal.h>

Collaboration diagram for ecs_t:

Public Attributes

entity_meta_tentities
component_signature_t * signatures
size_t entity_capacity
component_storage_tcomponents
size_t component_capacity
uint32_t registered_entities_count
uint32_t registered_component_count
system_func_t systems [MAX_SYSTEMS]
int system_count

Detailed Description

Internal structure representing the ECS world state. This holds:

  • All entity metadata.
  • Component storage for every registered component type.
  • A list of registered systems and the total count.
  • The number of registered components.

This is the core ECS structure passed to all internal and public ECS functions.

Member Data Documentation

◆ component_capacity

size_t ecs_t::component_capacity

Current capacity of the component array.

◆ components

component_storage_t* ecs_t::components

Dynamic array of registered component storages.

◆ entities

entity_meta_t* ecs_t::entities

Dynamic array of entity metadata.

◆ entity_capacity

size_t ecs_t::entity_capacity

Current capacity of the entity arrays.

◆ registered_component_count

uint32_t ecs_t::registered_component_count

Total number of registered component types.

◆ registered_entities_count

uint32_t ecs_t::registered_entities_count

Total number of registered entities.

◆ signatures

component_signature_t* ecs_t::signatures

Dynamic array of component signatures per entity.

◆ system_count

int ecs_t::system_count

Current number of registered systems.

◆ systems

system_func_t ecs_t::systems[MAX_SYSTEMS]

Array of registered system function pointers.


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