ksys/phys: Add QueryContactPointInfo

This commit is contained in:
Léo Lam 2022-03-06 21:34:36 +01:00
parent f1ac835664
commit a1f9eea300
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
4 changed files with 42 additions and 4 deletions

View File

@ -84002,10 +84002,10 @@ Address,Quality,Size,Name
0x0000007100fc2c68,O,000064,_ZN4ksys4phys8ParamSet5parseEPNS_3res7PhysicsEN3agl3utl19ResParameterArchiveEPN4sead4HeapE
0x0000007100fc2ca8,O,001508,_ZN4ksys4phys8ParamSet7doParseEPNS_3res7PhysicsEN3agl3utl19ResParameterArchiveEPN4sead4HeapE
0x0000007100fc328c,O,000028,_ZN4ksys4phys8ParamSet15getRigidBodySetEi
0x0000007100fc32a8,U,000136,
0x0000007100fc3330,U,000068,
0x0000007100fc3374,U,000004,j_nullsub_4247
0x0000007100fc3378,U,000036,
0x0000007100fc32a8,O,000136,_ZN4ksys4phys21QueryContactPointInfo4makeEPN4sead4HeapEiRKNS2_14SafeStringBaseIcEEii
0x0000007100fc3330,O,000068,_ZN4ksys4phys21QueryContactPointInfo4freeEPS1_
0x0000007100fc3374,O,000004,_ZN4ksys4phys21QueryContactPointInfoD1Ev
0x0000007100fc3378,O,000036,_ZN4ksys4phys21QueryContactPointInfoD0Ev
0x0000007100fc339c,U,000088,
0x0000007100fc33f4,U,000068,
0x0000007100fc3438,U,000032,

Can't render this file because it is too large.

View File

@ -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

View File

@ -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

View File

@ -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