mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
7d8c57fc9c
* Rename some functions and members * Match LegoWorld::Notify to 100% * Match MxOmni::Destroy to 100% * Fix parameter prefix * Fix another parameter * Fix CR at EOF * Fix CR at EOF --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
115 lines
2 KiB
C++
115 lines
2 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;
|
|
|
|
// OFFSET: LEGO1 0x100010a0
|
|
void LegoWorld::VTable0x60()
|
|
{
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x1001ca40 STUB
|
|
LegoWorld::LegoWorld()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x1001dfa0 STUB
|
|
LegoWorld::~LegoWorld()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10022340
|
|
void LegoWorld::Stop()
|
|
{
|
|
TickleManager()->UnregisterClient(this);
|
|
}
|
|
|
|
// OFFSET: 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;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x1001f630 STUB
|
|
void LegoWorld::VTable0x54()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10020f10 STUB
|
|
void LegoWorld::EndAction(MxPresenter* p_presenter)
|
|
{
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10020220 STUB
|
|
void LegoWorld::VTable0x58(MxCore* p_object)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x1001d670
|
|
MxBool LegoWorld::VTable0x5c()
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x1001d680
|
|
MxBool LegoWorld::VTable0x64()
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10021a70 STUB
|
|
void LegoWorld::VTable0x68(MxBool p_add)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x1001e0b0 STUB
|
|
MxResult LegoWorld::SetAsCurrentWorld(MxDSObject& p_dsObject)
|
|
{
|
|
// TODO
|
|
return SUCCESS;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10015820 STUB
|
|
void FUN_10015820(MxU32 p_unk1, MxU32 p_unk2)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x10015910 STUB
|
|
void FUN_10015910(MxU32 p_unk1)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100159c0
|
|
void SetIsWorldActive(MxBool p_isWorldActive)
|
|
{
|
|
if (!p_isWorldActive)
|
|
LegoOmni::GetInstance()->GetInputManager()->SetCamera(NULL);
|
|
g_isWorldActive = p_isWorldActive;
|
|
}
|