summaryrefslogtreecommitdiff
path: root/src/components.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components.hpp')
-rw-r--r--src/components.hpp5
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;