diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-01 18:52:50 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-03-01 19:12:29 +0100 |
| commit | 1ee012858c2c1f348e9ede0b26f36ffc0e1fa8b3 (patch) | |
| tree | 227b55f2fe20cf0bc07f71091d779b7055978140 /src/KingSystem/Physics/System/physContactPointInfo.cpp | |
| parent | 18d0c5329327c5d0841e6c446f6453e6c3850ece (diff) | |
ksys: Rename RigidContactPoints to match param files
Diffstat (limited to 'src/KingSystem/Physics/System/physContactPointInfo.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physContactPointInfo.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/KingSystem/Physics/System/physContactPointInfo.cpp b/src/KingSystem/Physics/System/physContactPointInfo.cpp new file mode 100644 index 00000000..0553e383 --- /dev/null +++ b/src/KingSystem/Physics/System/physContactPointInfo.cpp @@ -0,0 +1,28 @@ +#include "KingSystem/Physics/System/physContactPointInfo.h" +#include "KingSystem/Physics/System/physSystem.h" + +namespace ksys::phys { + +ContactPointInfo* ContactPointInfo::make(sead::Heap* heap, int num, const sead::SafeString& name, + int a, int b, int c) { + return System::instance()->allocContactPointInfo(heap, num, name, a, b, c); +} + +void ContactPointInfo::free(ContactPointInfo* instance) { + System::instance()->freeContactPointInfo(instance); +} + +ContactPointInfo::ContactPointInfo(const sead::SafeString& name, int a, int b, int c) + : ContactPointInfoBase(name, a, b, c) {} + +ContactPointInfo::~ContactPointInfo() = default; + +void ContactPointInfo::allocPoints(sead::Heap* heap, int num) { + mPoints.allocBufferAssert(num, heap); +} + +void ContactPointInfo::freePoints() { + mPoints.freeBuffer(); +} + +} // namespace ksys::phys |
