From 85cac31d06f5ef15b36aa6bc4edd31f85221a7b7 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 21 May 2025 09:31:05 -0400 Subject: pke: ecs DynArray-s to pk_arr_t --- src/ecs.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ecs.hpp') 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 EntitiesToBeRemoved; -extern DynArray EntitiesWithExcessInstances; +extern pk_arr_t EntitiesToBeRemoved; +extern pk_arr_t 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); -- cgit v1.2.3