mirror of
https://github.com/zeldaret/botw
synced 2026-08-17 13:09:22 -04:00
ksys/phys: Add QueryContactPointInfo
This commit is contained in:
@@ -126,6 +126,8 @@ target_sources(uking PRIVATE
|
||||
System/physMaterialTable.h
|
||||
System/physParamSet.cpp
|
||||
System/physParamSet.h
|
||||
System/physQueryContactPointInfo.cpp
|
||||
System/physQueryContactPointInfo.h
|
||||
System/physSensorGroupFilter.cpp
|
||||
System/physSensorGroupFilter.h
|
||||
System/physSystem.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
|
||||
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "KingSystem/Physics/System/physContactPointInfo.h"
|
||||
|
||||
namespace ksys::phys {
|
||||
|
||||
class QueryContactPointInfo : public ContactPointInfo {
|
||||
public:
|
||||
static QueryContactPointInfo* make(sead::Heap* heap, int num_points,
|
||||
const sead::SafeString& name, int a, int b);
|
||||
static void free(QueryContactPointInfo* info);
|
||||
|
||||
using ContactPointInfo::ContactPointInfo;
|
||||
~QueryContactPointInfo() override;
|
||||
};
|
||||
|
||||
} // namespace ksys::phys
|
||||
Reference in New Issue
Block a user