summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physContactPointInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/Physics/System/physContactPointInfo.cpp')
-rw-r--r--src/KingSystem/Physics/System/physContactPointInfo.cpp28
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