summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physMemSystem.cpp
blob: 834d6e2ed31e72c85adc753d842e255ab79d8446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "KingSystem/Physics/System/physMemSystem.h"
#include "KingSystem/Physics/System/physContactMgr.h"
#include "KingSystem/Physics/System/physRigidContactPoints.h"

namespace ksys::phys {

SEAD_SINGLETON_DISPOSER_IMPL(MemSystem)

RigidContactPoints* MemSystem::allocContactPoints(sead::Heap* heap, int num,
                                                  const sead::SafeString& name, int a, int b,
                                                  int c) const {
    return mContactMgr->allocContactPoints(heap, num, name, a, b, c);
}

void MemSystem::freeContactPoints(RigidContactPoints* points) const {
    mContactMgr->freeContactPoints(points);
}

RigidContactPointsEx* MemSystem::allocContactPointsEx(sead::Heap* heap, int num, int num2,
                                                      const sead::SafeString& name, int a, int b,
                                                      int c) const {
    return mContactMgr->allocContactPointsEx(heap, num, num2, name, a, b, c);
}

void MemSystem::registerContactPoints(RigidContactPoints* points) const {
    mContactMgr->registerContactPoints(points);
}

}  // namespace ksys::phys