summaryrefslogtreecommitdiff
path: root/src/ecs.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-05-21 09:31:05 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-05-21 09:31:05 -0400
commit85cac31d06f5ef15b36aa6bc4edd31f85221a7b7 (patch)
treee0a5658b021819664aa3b515462eebc6f8a02a86 /src/ecs.hpp
parent40d69e7e40a18865a31af2f55efcde369d36dbbb (diff)
pke: ecs DynArray-s to pk_arr_t
Diffstat (limited to 'src/ecs.hpp')
-rw-r--r--src/ecs.hpp7
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);