summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-11-14 14:46:23 -0500
committerJonathan Bradley <jcb@pikum.xyz>2024-11-14 14:46:23 -0500
commitb2548ba4ce295fcd94a50123fb543fac2ef2bc33 (patch)
tree444a32abb4a094c4fa2f7bc9a95aa86963ad4110 /src/components.hpp
parentb1d926361b9d613ad712ad161f9a8b7ccab4551d (diff)
add pk.h and major pkmem refactor
Completely replaces the memory module with pkmem pkmem is a newer implementation of the same bucket memory structure. Also includes replacing pkstr.h with pk.h's pkstr
Diffstat (limited to 'src/components.hpp')
-rw-r--r--src/components.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/components.hpp b/src/components.hpp
index 7d298ec..025d5f0 100644
--- a/src/components.hpp
+++ b/src/components.hpp
@@ -2,7 +2,7 @@
#define PKE_COMPONENTS_HPP
#include "dynamic-array.hpp"
-#include "macros.hpp"
+#include "vendor/pk.h"
#include "physics.hpp"
#include "plugin-types.hpp"
@@ -13,13 +13,13 @@
const uint64_t ECS_UNSET_VAL = 0xFFFFFFFFFFFFFFFF;
const uint32_t ECS_UNSET_VAL_32 = 0xFFFFFFFF;
-struct EntityHandle : public PkeHandle { };
-struct GrBindsHandle : public PkeHandle { };
-struct InstanceHandle : public PkeHandle { };
+struct EntityHandle : public pk_handle { };
+struct GrBindsHandle : public pk_handle { };
+struct InstanceHandle : public pk_handle { };
-constexpr EntityHandle EntityHandle_MAX = EntityHandle{};
-constexpr GrBindsHandle GrBindsHandle_MAX = GrBindsHandle{};
-constexpr InstanceHandle InstanceHandle_MAX = InstanceHandle{};
+constexpr EntityHandle EntityHandle_MAX = EntityHandle{ pk_handle_MAX_constexpr };
+constexpr GrBindsHandle GrBindsHandle_MAX = GrBindsHandle{ pk_handle_MAX_constexpr };
+constexpr InstanceHandle InstanceHandle_MAX = InstanceHandle{ pk_handle_MAX_constexpr };
struct Entity_Base {
EntityHandle handle = EntityHandle_MAX;