diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-03-31 16:00:14 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-03-31 16:00:14 -0400 |
| commit | fad302f7db146a78900f9b21dbbcd97761093c1b (patch) | |
| tree | 9f1d6d27386ff513b5e78646394edaeea972c555 /src/components.hpp | |
| parent | 96698b567b2e56768ca3e8762ce55dd3b2849ccb (diff) | |
pke: serialize camera instance + camera together
Diffstat (limited to 'src/components.hpp')
| -rw-r--r-- | src/components.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
