summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-03-27 11:58:47 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-03-27 11:58:47 -0400
commite4604d5b84a71ac3cc8fe1a148d0a6250c7a715c (patch)
tree0f768c8b5d0b96cb459f92c7795c6c9353710ed1 /src/components.hpp
parent11057d2aa423f9b565f3fead4c260999d1bdb53e (diff)
pke: generate uuid and save to project+scene files
Diffstat (limited to 'src/components.hpp')
-rw-r--r--src/components.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components.hpp b/src/components.hpp
index 326b0e6..f4e7c7f 100644
--- a/src/components.hpp
+++ b/src/components.hpp
@@ -28,6 +28,7 @@ constexpr LevelHandle LevelHandle_MAX = LevelHandle{ pk_handle_MAX_constexpr };
struct Entity_Base {
EntityHandle handle = EntityHandle_MAX;
EntityHandle parentHandle = EntityHandle_MAX;
+ pk_uuid uuid = pk_uuid_max;
bool isMarkedForRemoval = false;
};
@@ -65,6 +66,7 @@ struct CompInstance {
EntityHandle entHandle = EntityHandle_MAX;
GrBindsHandle grBindsHandle = GrBindsHandle_MAX;
InstanceHandle instanceHandle = InstanceHandle_MAX;
+ pk_uuid uuid = pk_uuid_max;
uint32_t index = ECS_UNSET_VAL_32;
PhysicsCollision physicsLayer = PhysicsCollision{1};
PhysicsCollision physicsMask = PhysicsCollision{1};