diff options
Diffstat (limited to 'src/ecs.hpp')
| -rw-r--r-- | src/ecs.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ecs.hpp b/src/ecs.hpp index a934fa2..7be6eac 100644 --- a/src/ecs.hpp +++ b/src/ecs.hpp @@ -1,12 +1,11 @@ #ifndef PKE_ECS_HPP #define PKE_ECS_HPP -#include "dynamic-array.hpp" #include "pk.h" #include "components.hpp" -extern DynArray<Entity_Base *> EntitiesToBeRemoved; -extern DynArray<Entity_Base *> EntitiesWithExcessInstances; +extern pk_arr_t<Entity_Base *> EntitiesToBeRemoved; +extern pk_arr_t<Entity_Base *> EntitiesWithExcessInstances; void ECS_Init(); void ECS_Teardown(); @@ -14,6 +13,8 @@ void ECS_Tick_Early(double delta); void ECS_Tick(double delta); void ECS_Tick_Late(double delta); +bool ecs_pk_arr_find_first_matching_pointer(void *search_ptr, void *list_ptr); + Entity_Base *ECS_CreateGenericEntity(); EntityHandle ECS_CreateEntity(Entity_Base *entity, Entity_Base *parentEnt = nullptr); Entity_Base *ECS_GetEntity(EntityHandle handle); |
