2023-06-29 04:10:08 -04:00
|
|
|
#include "legoworld.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
|
2023-10-23 07:16:21 -04:00
|
|
|
#include "legoinputmanager.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "legoomni.h"
|
2023-12-29 13:04:18 -05:00
|
|
|
#include "legoutil.h"
|
2023-10-25 16:51:59 -04:00
|
|
|
#include "mxactionnotificationparam.h"
|
2023-12-29 13:04:18 -05:00
|
|
|
#include "mxnotificationmanager.h"
|
2023-10-25 16:51:59 -04:00
|
|
|
#include "mxnotificationparam.h"
|
|
|
|
#include "mxomni.h"
|
2023-10-23 07:16:21 -04:00
|
|
|
#include "mxticklemanager.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(LegoWorld, 0xf8);
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1001ca40
|
2023-12-20 20:09:05 -05:00
|
|
|
LegoWorld::LegoWorld() : m_list0x68(TRUE)
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2024-01-12 17:27:07 -05:00
|
|
|
m_worldStarted = FALSE;
|
2023-12-29 13:04:18 -05:00
|
|
|
m_unk0xf4 = 4;
|
|
|
|
NotificationManager()->Register(this);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001d670
|
2023-11-21 03:44:45 -05:00
|
|
|
MxBool LegoWorld::VTable0x5c()
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001d680
|
2023-11-21 03:44:45 -05:00
|
|
|
MxBool LegoWorld::VTable0x64()
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1001dfa0
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoWorld::~LegoWorld()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
2023-10-23 07:16:21 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1001e0b0
|
2023-11-21 03:44:45 -05:00
|
|
|
MxResult LegoWorld::SetAsCurrentWorld(MxDSObject& p_dsObject)
|
2023-10-23 07:16:21 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
// TODO
|
|
|
|
return SUCCESS;
|
2023-10-23 07:16:21 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001f5e0
|
2023-10-25 16:51:59 -04:00
|
|
|
MxLong LegoWorld::Notify(MxParam& p_param)
|
|
|
|
{
|
|
|
|
MxLong ret = 0;
|
|
|
|
switch (((MxNotificationParam&) p_param).GetNotification()) {
|
|
|
|
case c_notificationEndAction: {
|
|
|
|
MxPresenter* presenter = (MxPresenter*) ((MxEndActionNotificationParam&) p_param).GetSender();
|
|
|
|
EndAction(presenter);
|
|
|
|
ret = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case c_notificationNewPresenter:
|
|
|
|
TickleManager()->RegisterClient(this, 100);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1001f630
|
2023-10-23 07:16:21 -04:00
|
|
|
void LegoWorld::VTable0x54()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-10-23 07:16:21 -04:00
|
|
|
}
|
|
|
|
|
2023-12-14 11:50:29 -05:00
|
|
|
// STUB: LEGO1 0x1001fc80
|
|
|
|
void LegoWorld::FUN_1001fc80(IslePathActor* p_actor)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-12-16 13:14:01 -05:00
|
|
|
// STUB: LEGO1 0x10020120
|
|
|
|
MxS32 LegoWorld::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x10020220
|
2023-10-24 19:38:27 -04:00
|
|
|
void LegoWorld::VTable0x58(MxCore* p_object)
|
2023-10-23 07:16:21 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-10-23 07:16:21 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x10020f10
|
2023-12-15 17:29:32 -05:00
|
|
|
void LegoWorld::EndAction(MxCore* p_object)
|
2023-10-23 07:16:21 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x10021a70
|
2023-10-24 19:38:27 -04:00
|
|
|
void LegoWorld::VTable0x68(MxBool p_add)
|
2023-10-23 07:16:21 -04:00
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
// TODO
|
2023-10-23 07:16:21 -04:00
|
|
|
}
|
|
|
|
|
2023-12-29 13:04:18 -05:00
|
|
|
// FUNCTION: LEGO1 0x10022080
|
2023-12-14 11:50:29 -05:00
|
|
|
MxResult LegoWorld::Tickle()
|
|
|
|
{
|
2024-01-12 17:27:07 -05:00
|
|
|
if (!m_worldStarted) {
|
2023-12-29 13:04:18 -05:00
|
|
|
switch (m_unk0xf4) {
|
|
|
|
case 0:
|
2024-01-12 17:27:07 -05:00
|
|
|
m_worldStarted = TRUE;
|
2023-12-29 13:04:18 -05:00
|
|
|
SetAppCursor(0);
|
2024-01-12 17:27:07 -05:00
|
|
|
VTable0x50();
|
2023-12-29 13:04:18 -05:00
|
|
|
return TRUE;
|
|
|
|
case 2:
|
|
|
|
if (FUN_100220e0() == 1)
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
m_unk0xf4--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x100220e0
|
|
|
|
undefined LegoWorld::FUN_100220e0()
|
|
|
|
{
|
2024-01-12 17:27:07 -05:00
|
|
|
return 0;
|
2023-12-14 11:50:29 -05:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10022340
|
2024-01-12 17:27:07 -05:00
|
|
|
void LegoWorld::VTable0x50()
|
2023-10-23 07:16:21 -04:00
|
|
|
{
|
2023-11-21 03:44:45 -05:00
|
|
|
TickleManager()->UnregisterClient(this);
|
2023-10-25 14:51:59 -04:00
|
|
|
}
|
2023-12-14 11:50:29 -05:00
|
|
|
|
|
|
|
// STUB: LEGO1 0x100727e0
|
|
|
|
MxBool LegoWorld::FUN_100727e0(MxU32, Vector3Data& p_loc, Vector3Data& p_dir, Vector3Data& p_up)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10072980
|
|
|
|
MxBool LegoWorld::FUN_10072980(MxU32, Vector3Data& p_loc, Vector3Data& p_dir, Vector3Data& p_up)
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10073400
|
|
|
|
void LegoWorld::FUN_10073400()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-12-17 17:45:33 -05:00
|
|
|
// STUB: LEGO1 0x10073430
|
2023-12-14 11:50:29 -05:00
|
|
|
void LegoWorld::FUN_10073430()
|
|
|
|
{
|
|
|
|
}
|