mirror of
https://github.com/zeldaret/botw
synced 2026-05-30 08:56:30 -04:00
ksys/phys: Add more StaticCompound stuff, part 1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user