summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-03-06 21:34:36 +0100
committerLéo Lam <leo@leolam.fr>2022-03-06 21:35:36 +0100
commita1f9eea30085df764f23c99c27a46e1e2bab01d2 (patch)
treece5d7004a0d2dacb260e744e7822731dfcacccf0 /src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
parentf1ac83566438b3ca276c826ddfd9fa89753a2c7b (diff)
ksys/phys: Add QueryContactPointInfo
Diffstat (limited to 'src/KingSystem/Physics/System/physQueryContactPointInfo.cpp')
-rw-r--r--src/KingSystem/Physics/System/physQueryContactPointInfo.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp b/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
new file mode 100644
index 00000000..9a972ed7
--- /dev/null
+++ b/src/KingSystem/Physics/System/physQueryContactPointInfo.cpp
@@ -0,0 +1,19 @@
+#include "KingSystem/Physics/System/physQueryContactPointInfo.h"
+
+namespace ksys::phys {
+
+QueryContactPointInfo* QueryContactPointInfo::make(sead::Heap* heap, int num_points,
+ const sead::SafeString& name, int a, int b) {
+ auto* info = new (heap) QueryContactPointInfo(name, a, b, 0);
+ info->allocPoints(heap, num_points);
+ return info;
+}
+
+void QueryContactPointInfo::free(QueryContactPointInfo* info) {
+ info->freePoints();
+ delete info;
+}
+
+QueryContactPointInfo::~QueryContactPointInfo() = default;
+
+} // namespace ksys::phys