From e4604d5b84a71ac3cc8fe1a148d0a6250c7a715c Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 27 Mar 2025 11:58:47 -0400 Subject: pke: generate uuid and save to project+scene files --- src/components.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components.hpp') 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}; -- cgit v1.2.3