2023-06-29 04:10:08 -04:00
|
|
|
#include "legobuildingmanager.h"
|
|
|
|
|
2024-02-10 20:52:16 -05:00
|
|
|
DECOMP_SIZE_ASSERT(LegoBuildingManager, 0x30)
|
|
|
|
|
2024-02-21 15:30:02 -05:00
|
|
|
// GLOBAL: LEGO1 0x100f37c8
|
|
|
|
char* LegoBuildingManager::g_customizeAnimFile = NULL;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// GLOBAL: LEGO1 0x100f37cc
|
2023-06-30 14:34:39 -04:00
|
|
|
int g_buildingManagerConfig = 1;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002f8b0
|
2023-12-13 05:48:14 -05:00
|
|
|
void LegoBuildingManager::configureLegoBuildingManager(MxS32 p_buildingManagerConfig)
|
2023-11-21 03:44:45 -05:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
g_buildingManagerConfig = p_buildingManagerConfig;
|
2023-11-21 03:44:45 -05:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002f8c0
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoBuildingManager::LegoBuildingManager()
|
|
|
|
{
|
2023-11-12 14:21:01 -05:00
|
|
|
Init();
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1002f960
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoBuildingManager::~LegoBuildingManager()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1002f9d0
|
2023-06-29 04:10:08 -04:00
|
|
|
void LegoBuildingManager::Init()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
2024-01-12 17:27:07 -05:00
|
|
|
|
|
|
|
// STUB: LEGO1 0x1002fa00
|
|
|
|
void LegoBuildingManager::FUN_1002fa00()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-01-27 11:48:50 -05:00
|
|
|
// STUB: LEGO1 0x1002fb30
|
|
|
|
void LegoBuildingManager::FUN_1002fb30()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-02-27 15:04:17 -05:00
|
|
|
// STUB: LEGO1 0x1002fb80
|
|
|
|
MxResult LegoBuildingManager::Save(LegoStorage* p_storage)
|
|
|
|
{
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x1002fc10
|
|
|
|
MxResult LegoBuildingManager::Load(LegoStorage* p_storage)
|
|
|
|
{
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
2024-03-15 22:20:44 -04:00
|
|
|
// STUB: LEGO1 0x1002fdb0
|
|
|
|
MxBool LegoBuildingManager::FUN_1002fdb0(LegoEntity* p_entity)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2024-03-06 14:12:20 -05:00
|
|
|
// STUB: LEGO1 0x1002ff40
|
|
|
|
MxU32 LegoBuildingManager::FUN_1002ff40(LegoROI*, MxBool)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-02-21 15:30:02 -05:00
|
|
|
// FUNCTION: LEGO1 0x1002ff90
|
|
|
|
void LegoBuildingManager::SetCustomizeAnimFile(const char* p_value)
|
|
|
|
{
|
|
|
|
if (g_customizeAnimFile != NULL) {
|
|
|
|
delete[] g_customizeAnimFile;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p_value != NULL) {
|
|
|
|
g_customizeAnimFile = new char[strlen(p_value) + 1];
|
|
|
|
|
|
|
|
if (g_customizeAnimFile != NULL) {
|
|
|
|
strcpy(g_customizeAnimFile, p_value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
g_customizeAnimFile = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-20 18:04:46 -05:00
|
|
|
// STUB: LEGO1 0x10030220
|
|
|
|
MxResult LegoBuildingManager::Tickle()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
2024-02-05 12:35:26 -05:00
|
|
|
|
|
|
|
// STUB: LEGO1 0x10030590
|
|
|
|
void LegoBuildingManager::FUN_10030590()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|