mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -05:00
d72c767685
* LegoOmni functions * fix build * Update mxstreamcontroller.cpp * fixes + improve match * Update mxomni.cpp * Update mxdsobject.h * improve match * Update mxactionnotificationparam.h * MxOmni::HandleActionEnd * fixes * Update LEGO1/mxstreamer.cpp Co-authored-by: Joshua Peisach <itzswirlz2020@outlook.com> * A bunch of fixes --------- Co-authored-by: Joshua Peisach <itzswirlz2020@outlook.com> Co-authored-by: Christian Semmler <mail@csemmler.com>
150 lines
2.5 KiB
C++
150 lines
2.5 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;
|
|
|
|
// STUB: LEGO1 0x10015820
|
|
void FUN_10015820(MxU32, MxU32)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x10015910
|
|
void FUN_10015910(MxU32)
|
|
{
|
|
// 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;
|
|
}
|
|
|
|
// 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 0x1001fc80
|
|
void LegoWorld::FUN_1001fc80(IslePathActor* p_actor)
|
|
{
|
|
}
|
|
|
|
// STUB: LEGO1 0x10020120
|
|
MxS32 LegoWorld::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
// STUB: LEGO1 0x10020220
|
|
void LegoWorld::VTable0x58(MxCore* p_object)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x10020f10
|
|
void LegoWorld::EndAction(MxCore* p_object)
|
|
{
|
|
}
|
|
|
|
// STUB: LEGO1 0x10021a70
|
|
void LegoWorld::VTable0x68(MxBool p_add)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x10022080
|
|
MxResult LegoWorld::Tickle()
|
|
{
|
|
return SUCCESS;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10022340
|
|
void LegoWorld::Stop()
|
|
{
|
|
TickleManager()->UnregisterClient(this);
|
|
}
|
|
|
|
// 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()
|
|
{
|
|
}
|
|
|
|
// STUB: LEGO1 0x10073400
|
|
void LegoWorld::FUN_10073430()
|
|
{
|
|
}
|