From fad302f7db146a78900f9b21dbbcd97761093c1b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 31 Mar 2025 16:00:14 -0400 Subject: pke: serialize camera instance + camera together --- src/components.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components.hpp') diff --git a/src/components.hpp b/src/components.hpp index f4e7c7f..44aaa30 100644 --- a/src/components.hpp +++ b/src/components.hpp @@ -53,6 +53,10 @@ struct CompGrBinds { PkeCallback collisionCallback{}; }; +enum COMPONENT_INSTANCE_FLAGS : unsigned long long { + COMPONENT_INSTANCE_FLAG_NONE = 0x00, + COMPONENT_INSTANCE_FLAG_DO_NOT_SERIALIZE = 0x01, +}; struct InstPos { btTransform posRot; btVector3 scale; @@ -63,6 +67,7 @@ struct InstBt { btRigidBody *rigidBody = nullptr; }; struct CompInstance { + unsigned long long flags = COMPONENT_INSTANCE_FLAG_NONE; EntityHandle entHandle = EntityHandle_MAX; GrBindsHandle grBindsHandle = GrBindsHandle_MAX; InstanceHandle instanceHandle = InstanceHandle_MAX; -- cgit v1.2.3