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-10-25 16:51:59 -04:00
|
|
|
#include "mxactionnotificationparam.h"
|
|
|
|
#include "mxnotificationparam.h"
|
|
|
|
#include "mxomni.h"
|
2023-10-23 07:16:21 -04:00
|
|
|
#include "mxticklemanager.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(LegoWorld, 0xf8);
|
|
|
|
|
|
|
|
MxBool g_isWorldActive;
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100010a0
|
2023-10-25 16:51:59 -04:00
|
|
|
void LegoWorld::VTable0x60()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x10015820
|
2023-11-21 03:44:45 -05:00
|
|
|
void FUN_10015820(MxU32 p_unk1, MxU32 p_unk2)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x10015910
|
2023-11-21 03:44:45 -05:00
|
|
|
void FUN_10015910(MxU32 p_unk1)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100159c0
|
2023-11-21 03:44:45 -05:00
|
|
|
void SetIsWorldActive(MxBool p_isWorldActive)
|
|
|
|
{
|
|
|
|
if (!p_isWorldActive)
|
|
|
|
LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL);
|
|
|
|
g_isWorldActive = p_isWorldActive;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// STUB: LEGO1 0x1001ca40
|
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-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-07 14:14:49 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1001eed0
|
|
|
|
// MxPresenterListCursor::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001ef40
|
|
|
|
// MxPtrListCursor<MxPresenter>::~MxPtrListCursor<MxPresenter>
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1001ef90
|
|
|
|
// MxListCursor<MxPresenter *>::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1001f000
|
|
|
|
// MxPtrListCursor<MxPresenter>::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// TEMPLATE: LEGO1 0x1001f070
|
|
|
|
// MxListCursor<MxPresenter *>::~MxListCursor<MxPresenter *>
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1001f0c0
|
|
|
|
// MxPresenterListCursor::~MxPresenterListCursor
|
|
|
|
|
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-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-11-21 03:44:45 -05:00
|
|
|
void LegoWorld::EndAction(MxPresenter* p_presenter)
|
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-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10022340
|
2023-11-21 03:44:45 -05:00
|
|
|
void LegoWorld::Stop()
|
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
|
|
|
}
|