diff options
Diffstat (limited to 'src/components.hpp')
| -rw-r--r-- | src/components.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components.hpp b/src/components.hpp index 4223845..e99481e 100644 --- a/src/components.hpp +++ b/src/components.hpp @@ -11,9 +11,13 @@ const uint64_t ECS_UNSET_VAL = 0xFFFFFFFFFFFFFFFF; -TypeSafeInt_H(EntityHandle, uint64_t, ECS_UNSET_VAL); -TypeSafeInt_H(GrBindsHandle, uint64_t, ECS_UNSET_VAL); -TypeSafeInt_H(InstanceHandle, uint64_t, ECS_UNSET_VAL); +struct EntityHandle : public PkeHandle { }; +struct GrBindsHandle : public PkeHandle { }; +struct InstanceHandle : public PkeHandle { }; + +constexpr EntityHandle EntityHandle_MAX = EntityHandle{}; +constexpr GrBindsHandle GrBindsHandle_MAX = GrBindsHandle{}; +constexpr InstanceHandle InstanceHandle_MAX = InstanceHandle{}; struct Entity { EntityHandle handle = EntityHandle_MAX; |
