summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/StaticCompound/physStaticCompoundMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/Physics/StaticCompound/physStaticCompoundMgr.cpp')
-rw-r--r--src/KingSystem/Physics/StaticCompound/physStaticCompoundMgr.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/KingSystem/Physics/StaticCompound/physStaticCompoundMgr.cpp b/src/KingSystem/Physics/StaticCompound/physStaticCompoundMgr.cpp
new file mode 100644
index 00000000..f5d79b25
--- /dev/null
+++ b/src/KingSystem/Physics/StaticCompound/physStaticCompoundMgr.cpp
@@ -0,0 +1,22 @@
+#include "KingSystem/Physics/StaticCompound/physStaticCompoundMgr.h"
+#include "KingSystem/Physics/System/physSystem.h"
+
+namespace ksys::phys {
+
+StaticCompoundMgr::StaticCompoundMgr() = default;
+
+StaticCompoundMgr::~StaticCompoundMgr() {
+ if (mGroupHandler) {
+ System::instance()->removeSystemGroupHandler(mGroupHandler);
+ mGroupHandler = nullptr;
+ }
+}
+
+bool StaticCompoundMgr::init() {
+ if (!mGroupHandler)
+ mGroupHandler = System::instance()->addSystemGroupHandler(ContactLayerType::Entity);
+
+ return true;
+}
+
+} // namespace ksys::phys