2024-01-20 18:04:46 -05:00
|
|
|
#include "legoact2.h"
|
|
|
|
|
2024-06-08 19:17:33 -04:00
|
|
|
#include "legoanimationmanager.h"
|
|
|
|
#include "legoinputmanager.h"
|
|
|
|
#include "misc.h"
|
|
|
|
#include "mxmisc.h"
|
|
|
|
#include "mxnotificationmanager.h"
|
|
|
|
#include "mxticklemanager.h"
|
|
|
|
|
2024-03-22 21:30:58 -04:00
|
|
|
DECOMP_SIZE_ASSERT(LegoAct2, 0x1154)
|
2024-06-03 12:53:25 -04:00
|
|
|
DECOMP_SIZE_ASSERT(LegoAct2State, 0x10)
|
2024-03-22 21:30:58 -04:00
|
|
|
|
2024-06-12 20:02:47 -04:00
|
|
|
// STUB: LEGO1 0x1004fce0
|
|
|
|
LegoAct2::LegoAct2()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-02-07 06:13:20 -05:00
|
|
|
// FUNCTION: LEGO1 0x1004fe10
|
2024-01-20 18:04:46 -05:00
|
|
|
MxBool LegoAct2::VTable0x5c()
|
|
|
|
{
|
2024-02-07 06:13:20 -05:00
|
|
|
return TRUE;
|
2024-01-20 18:04:46 -05:00
|
|
|
}
|
|
|
|
|
2024-06-08 19:17:33 -04:00
|
|
|
// FUNCTION: LEGO1 0x1004fe40
|
|
|
|
// FUNCTION: BETA10 0x1003a6f0
|
|
|
|
LegoAct2::~LegoAct2()
|
|
|
|
{
|
|
|
|
if (m_unk0x10c2) {
|
|
|
|
TickleManager()->UnregisterClient(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
FUN_10051900();
|
|
|
|
InputManager()->UnRegister(this);
|
2024-06-12 09:13:52 -04:00
|
|
|
if (UserActor()) {
|
|
|
|
Remove(UserActor());
|
2024-06-08 19:17:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
NotificationManager()->Unregister(this);
|
|
|
|
}
|
|
|
|
|
2024-01-20 18:04:46 -05:00
|
|
|
// STUB: LEGO1 0x1004ff20
|
|
|
|
MxResult LegoAct2::Create(MxDSAction& p_dsAction)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10050040
|
|
|
|
MxResult LegoAct2::Tickle()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10050380
|
|
|
|
MxLong LegoAct2::Notify(MxParam& p_param)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10050a80
|
2024-01-27 15:18:35 -05:00
|
|
|
void LegoAct2::ReadyWorld()
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10050cf0
|
2024-02-02 12:18:46 -05:00
|
|
|
void LegoAct2::Enable(MxBool p_enable)
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2024-06-08 19:17:33 -04:00
|
|
|
// FUNCTION: LEGO1 0x10051900
|
|
|
|
// FUNCTION: BETA10 0x1003bed1
|
|
|
|
void LegoAct2::FUN_10051900()
|
|
|
|
{
|
|
|
|
if (AnimationManager()) {
|
|
|
|
AnimationManager()->Suspend();
|
|
|
|
AnimationManager()->Resume();
|
|
|
|
AnimationManager()->FUN_10060540(FALSE);
|
|
|
|
AnimationManager()->FUN_100604d0(FALSE);
|
|
|
|
AnimationManager()->EnableCamAnims(FALSE);
|
|
|
|
AnimationManager()->FUN_1005f6d0(FALSE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-20 18:04:46 -05:00
|
|
|
// STUB: LEGO1 0x100519c0
|
|
|
|
void LegoAct2::VTable0x60()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x100519d0
|
2024-05-24 20:41:57 -04:00
|
|
|
MxBool LegoAct2::Escape()
|
2024-01-20 18:04:46 -05:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return FALSE;
|
|
|
|
}
|