ecsnet
Loading...
Searching...
No Matches
ecs_internal.h
1#ifndef ECS_INTERNAL_H
2#define ECS_INTERNAL_H
3
4#include "ecs_types.h"
5#ifdef __cplusplus
6extern "C" {
7#endif
13typedef struct {
14 bool in_use;
16
33
55
63static void ecs_run_systems(ecs_t *ecs, float dt);
64
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif
Definition ecs_types.h:77
Storage container for a single component type. Each registered component type gets its own storage st...
Definition ecs_internal.h:26
bool * is_dirty
Definition ecs_internal.h:30
void * data
Definition ecs_internal.h:28
bool * used
Definition ecs_internal.h:29
component_descriptor_t descriptor
Definition ecs_internal.h:27
size_t capacity
Definition ecs_internal.h:31
Internal structure representing the ECS world state. This holds:
Definition ecs_internal.h:44
entity_meta_t * entities
Definition ecs_internal.h:45
system_func_t systems[MAX_SYSTEMS]
Definition ecs_internal.h:52
uint32_t registered_entities_count
Definition ecs_internal.h:50
component_storage_t * components
Definition ecs_internal.h:48
uint32_t registered_component_count
Definition ecs_internal.h:51
component_signature_t * signatures
Definition ecs_internal.h:46
size_t component_capacity
Definition ecs_internal.h:49
size_t entity_capacity
Definition ecs_internal.h:47
int system_count
Definition ecs_internal.h:53
Metadata for an entity. This structure holds internal bookkeeping information for an entity,...
Definition ecs_internal.h:13
bool in_use
Definition ecs_internal.h:14