From f07294ca65143fac8b1b426d1854212403721226 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 10 Jan 2024 19:24:12 -0500 Subject: checkpoint - handle breaking ECS changes - compiles --- src/ecs.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ecs.hpp') diff --git a/src/ecs.hpp b/src/ecs.hpp index 567f6df..4ddf232 100644 --- a/src/ecs.hpp +++ b/src/ecs.hpp @@ -1,6 +1,7 @@ #ifndef PKE_ECS_HPP #define PKE_ECS_HPP +#include "array.hpp" #include "dynamic-array.hpp" #include "macros.hpp" #include "memory.hpp" @@ -23,19 +24,22 @@ void ECS_Tick_Early(double delta); void ECS_Tick(double delta); void ECS_Tick_Late(double delta); +Entity_Base *ECS_CreateGenericEntity(); EntityHandle ECS_CreateEntity(Entity_Base *entity, Entity_Base *parentEnt = nullptr); Entity_Base *ECS_GetEntity(EntityHandle handle); void ECS_MarkForRemoval(Entity_Base *entity); -void ECS_HandleCollision(Entity_Base *lhs, Entity_Base *rhs); +void ECS_HandleCollision(CompInstance *lhs, CompInstance *rhs); CompGrBinds *ECS_CreateGrBinds(Entity_Base *); CompGrBinds *ECS_GetGrBinds(GrBindsHandle grBindsHandle); +void ECS_GetGrBinds(Entity_Base *entity, PkeArray &arr); uint64_t ECS_GetGrBinds_BucketCount(); CompGrBinds *ECS_GetGrBinds(uint64_t bucketIndex, uint64_t &itemCount); CompInstance *ECS_CreateInstance(Entity_Base *entity, CompGrBinds *entityTypeGrBinds); CompInstance *ECS_GetInstance(InstanceHandle instanceHandle); +void ECS_GetInstances(Entity_Base *entity, PkeArray &arr); void ECS_UpdateInstance(CompInstance *instance, const InstPos &instPos, bool overridePhysics = false); uint64_t ECS_GetInstances_BucketCount(); CompInstance *ECS_GetInstances(uint64_t bucketIndex, uint64_t &itemCount); -- cgit v1.2.3