summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physSystemData.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-12-26 14:33:41 +0100
committerLéo Lam <leo@leolam.fr>2021-12-27 13:00:03 +0100
commit536a00138ea315814709cfda942dad9c2a3e31d8 (patch)
treef26920a567f770d068919f986ddb3bcfdc28edf9 /src/KingSystem/Physics/System/physSystemData.cpp
parentc716c3eec8a213a179c33b8ca9e4a09f1afef0e0 (diff)
ksys/phys: Start adding ContactMgr
Also renames ContactInfoTable to ContactMgr because the contact info table is a separate data structure that's managed by ContactMgr; the manager itself handles more than just the table data
Diffstat (limited to 'src/KingSystem/Physics/System/physSystemData.cpp')
-rw-r--r--src/KingSystem/Physics/System/physSystemData.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/KingSystem/Physics/System/physSystemData.cpp b/src/KingSystem/Physics/System/physSystemData.cpp
index 319bb98e..d21af924 100644
--- a/src/KingSystem/Physics/System/physSystemData.cpp
+++ b/src/KingSystem/Physics/System/physSystemData.cpp
@@ -1,5 +1,5 @@
#include "KingSystem/Physics/System/physSystemData.h"
-#include "KingSystem/Physics/System/physContactInfoTable.h"
+#include "KingSystem/Physics/System/physContactMgr.h"
#include "KingSystem/Physics/System/physGroupFilter.h"
#include "KingSystem/Physics/System/physMaterialTable.h"
#include "KingSystem/Physics/System/physRagdollControllerKeyList.h"
@@ -39,7 +39,7 @@ SystemData::~SystemData() {
void SystemData::load(sead::Heap* heap, GroupFilter* entity_group_filter,
GroupFilter* sensor_group_filter, MaterialTable* material_table,
- ContactInfoTable* contact_info_table) {
+ ContactMgr* contact_info_table) {
loadLayerTable(heap, entity_group_filter, ContactLayerType::Entity);
loadLayerTable(heap, sensor_group_filter, ContactLayerType::Sensor);
loadMaterialTable(heap, material_table);
@@ -90,11 +90,10 @@ void SystemData::loadSubMaterialTable(sead::Heap* heap, MaterialTable* table) {
table->loadSubMaterialTable(heap, res);
}
-void SystemData::loadContactInfoTable(sead::Heap* heap, ContactInfoTable* table,
- ContactLayerType type) {
+void SystemData::loadContactInfoTable(sead::Heap* heap, ContactMgr* table, ContactLayerType type) {
mContactInfoTableHandles[int(type)] = new (heap) res::Handle;
const auto res = loadContactInfoTableRes(type);
- table->load(heap, res, type);
+ table->loadContactInfoTable(heap, res, type);
}
void SystemData::loadCharacterCtrlTable(sead::Heap* heap) {