added vector inline to hopefully make caching work for the entity component system

This commit is contained in:
herbglitch 2025-03-13 19:22:27 -06:00
parent ccf13ba470
commit ba09aff914
7 changed files with 482 additions and 2 deletions

View file

@ -17,6 +17,16 @@ typedef struct ARC_EntitySystem ARC_EntitySystem;
*/
typedef uint32_t ARC_Entity;
/**
* @brief an entity component system type
*/
typedef uint32_t ARC_EntityComponent;
/**
* @brief
*/
typedef void (* ARC_EntityCoponent_CreateEmptyFn)(void **type);
/**
* @brief
*/
@ -29,6 +39,12 @@ void ARC_EntitySystem_Create(ARC_EntitySystem **entitySystem);
*/
void ARC_EntitySystem_Destroy(ARC_EntitySystem *entitySystem);
void ARC_EntitySystem_RegisterComponent(ARC_EntitySystem *entitySystem, uint32_t componentSize);
//void ARC_EntitySystem_RunSystem(ARC_EntitySystem *entitySystem, ARC_Component component);
void ARC_EntitySystem_Run(ARC_EntitySystem *entitySystem);
#ifdef __cplusplus
}
#endif