mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
ce686705f2
* LegoWorldList * Refactor list cursors * Add decomp markers for list cursors * Fix decomp markers * MxRegionListCursor edit to prevent accuracy drop * Better fix for MxRegionListCursor
133 lines
2.4 KiB
C++
133 lines
2.4 KiB
C++
#include "legoworld.h"
|
|
|
|
#include "legoinputmanager.h"
|
|
#include "legoomni.h"
|
|
#include "mxactionnotificationparam.h"
|
|
#include "mxnotificationparam.h"
|
|
#include "mxomni.h"
|
|
#include "mxticklemanager.h"
|
|
|
|
DECOMP_SIZE_ASSERT(LegoWorld, 0xf8);
|
|
|
|
MxBool g_isWorldActive;
|
|
|
|
// FUNCTION: LEGO1 0x100010a0
|
|
void LegoWorld::VTable0x60()
|
|
{
|
|
}
|
|
|
|
// STUB: LEGO1 0x10015820
|
|
void FUN_10015820(MxU32 p_unk1, MxU32 p_unk2)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x10015910
|
|
void FUN_10015910(MxU32 p_unk1)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100159c0
|
|
void SetIsWorldActive(MxBool p_isWorldActive)
|
|
{
|
|
if (!p_isWorldActive)
|
|
LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL);
|
|
g_isWorldActive = p_isWorldActive;
|
|
}
|
|
|
|
// STUB: LEGO1 0x1001ca40
|
|
LegoWorld::LegoWorld()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1001d670
|
|
MxBool LegoWorld::VTable0x5c()
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1001d680
|
|
MxBool LegoWorld::VTable0x64()
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// STUB: LEGO1 0x1001dfa0
|
|
LegoWorld::~LegoWorld()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x1001e0b0
|
|
MxResult LegoWorld::SetAsCurrentWorld(MxDSObject& p_dsObject)
|
|
{
|
|
// TODO
|
|
return SUCCESS;
|
|
}
|
|
|
|
// 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
|
|
|
|
// FUNCTION: LEGO1 0x1001f5e0
|
|
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;
|
|
}
|
|
|
|
// STUB: LEGO1 0x1001f630
|
|
void LegoWorld::VTable0x54()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x10020220
|
|
void LegoWorld::VTable0x58(MxCore* p_object)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x10020f10
|
|
void LegoWorld::EndAction(MxPresenter* p_presenter)
|
|
{
|
|
}
|
|
|
|
// STUB: LEGO1 0x10021a70
|
|
void LegoWorld::VTable0x68(MxBool p_add)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10022340
|
|
void LegoWorld::Stop()
|
|
{
|
|
TickleManager()->UnregisterClient(this);
|
|
}
|