Misc Stuff 5 (#63)

* name item 31 to 34

* name item 25 to 29

* decompile PassengerManager (95%)

* started cargo manager

* local attribute

* passenger/cargo manager ov001 functions

* name item manager functions

* fix build issues & more docs on 027e0cd8

* format
This commit is contained in:
Yanis
2026-05-11 17:27:59 +02:00
committed by GitHub
parent 645ed65b76
commit 0f74fd4201
82 changed files with 1838 additions and 878 deletions
+29
View File
@@ -0,0 +1,29 @@
#include "MainGame/CargoManager.hpp"
#include "System/SysNew.hpp"
CargoManager *CargoManager::Create() {
return new(HeapIndex_1) CargoManager();
}
void CargoManager::SetCargo(unk32 type, unk32 amount) {
this->mCargo.Set(type, amount);
this->func_ov024_020d5900();
}
void CargoManager::GetTypeAndAmount(unk32 *pType, unk32 *pAmount) {
volatile Cargo *pCargo = &this->mCargo2;
unk32 type = pCargo->mType;
unk32 amount = pCargo->mAmount;
*pType = type;
*pAmount = amount;
}
void CargoManager::func_ov024_020d5900() {
this->mCargo2 = this->mCargo;
}
void CargoManager::func_ov024_020d591c() {
this->mCargo = this->mCargo2;
}