diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-05-30 17:21:38 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-05-30 17:21:38 -0400 |
| commit | 2a2b5c4dbfe278e282b3d8ae0352a11da50c872a (patch) | |
| tree | ad0f61c521d2fe0f79a55a72e36af39161b25067 /src/entities.hpp | |
| parent | f1d22f3fde0cb7bf201168a11774793b4efc98f7 (diff) | |
pke: entities: BucketContainer>pk_bkt_arr_t
Diffstat (limited to 'src/entities.hpp')
| -rw-r--r-- | src/entities.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/entities.hpp b/src/entities.hpp index 8cecb63..7ce6757 100644 --- a/src/entities.hpp +++ b/src/entities.hpp @@ -37,8 +37,8 @@ struct EntityType : public Entity_Base { // PkeCallback serializeInstanceCallback; // TODO // PkeCallback deserializeInstanceCallback; // TODO }; -struct EntityTypeHandle : pk_handle {}; -constexpr EntityTypeHandle EntityTypeHandle_MAX = EntityTypeHandle{ pk_handle_MAX_constexpr }; +struct EntityTypeHandle : pk_bkt_arr_handle {}; +constexpr EntityTypeHandle EntityTypeHandle_MAX = EntityTypeHandle{ pk_bkt_arr_handle_MAX_constexpr }; void EntityType_Init(); EntityType *EntityType_FindByTypeCode(const char *typeCode); @@ -49,8 +49,7 @@ void EntityType_Load(EntityType &et); void EntityType_Tick(double delta); void EntityType_Tick_Late(double delta); void EntityType_RolloverInstances(EntityType &et, CompGrBinds &grBinds); -pk_handle_bucket_index_T EntityType_GetBucketCount(); -EntityType *EntityType_GetEntityTypes(pk_handle_bucket_index_T bucketIndex, pk_handle_item_index_T &itemCount); +pk_bkt_arr *EntityType_GetEntityTypes(); void EntityType_Teardown(); #endif /* PKE_ENTITIES_HPP */ |
