2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcontrolpresenter.h"
|
|
|
|
|
2023-11-10 13:27:10 -05:00
|
|
|
#include "mxticklemanager.h"
|
|
|
|
|
2023-10-01 08:49:55 -04:00
|
|
|
DECOMP_SIZE_ASSERT(MxControlPresenter, 0x5c)
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10043f50
|
2023-06-29 04:10:08 -04:00
|
|
|
MxControlPresenter::MxControlPresenter()
|
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
this->m_unk0x4c = 0;
|
|
|
|
this->m_unk0x4e = -1;
|
2023-12-15 11:41:07 -05:00
|
|
|
this->m_unk0x50 = FALSE;
|
2023-12-13 05:48:14 -05:00
|
|
|
this->m_unk0x52 = 0;
|
|
|
|
this->m_unk0x58 = 0;
|
|
|
|
this->m_unk0x54 = 0;
|
2023-10-25 14:51:59 -04:00
|
|
|
}
|
2023-11-10 13:27:10 -05:00
|
|
|
|
2023-12-15 11:41:07 -05:00
|
|
|
// FUNCTION: LEGO1 0x10043fd0
|
|
|
|
void MxControlPresenter::RepeatingTickle()
|
|
|
|
{
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10043fe0
|
|
|
|
MxBool MxControlPresenter::VTable0x64(undefined4 p_undefined)
|
|
|
|
{
|
|
|
|
return m_unk0x50;
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10043ff0
|
|
|
|
void MxControlPresenter::VTable0x68(MxBool p_undefined)
|
|
|
|
{
|
|
|
|
m_unk0x50 = p_undefined;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10044110
|
2023-11-10 13:27:10 -05:00
|
|
|
MxControlPresenter::~MxControlPresenter()
|
|
|
|
{
|
2023-12-15 11:41:07 -05:00
|
|
|
if (m_unk0x58)
|
|
|
|
delete m_unk0x58;
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10044180
|
|
|
|
MxResult MxControlPresenter::AddToManager()
|
|
|
|
{
|
|
|
|
m_unk0x4e = 0;
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10044190
|
|
|
|
MxResult MxControlPresenter::StartAction(MxStreamController*, MxDSAction*)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10044260
|
|
|
|
void MxControlPresenter::EndAction()
|
|
|
|
{
|
|
|
|
if (m_action) {
|
|
|
|
m_unk0x50 = TRUE;
|
|
|
|
MxCompositePresenter::EndAction();
|
2023-11-10 13:27:10 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-15 11:41:07 -05:00
|
|
|
// STUB: LEGO1 0x10044270
|
|
|
|
MxBool MxControlPresenter::FUN_10044270(undefined4, undefined4, undefined4*)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10044480
|
|
|
|
MxBool MxControlPresenter::FUN_10044480(undefined4, undefined4*)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10044540
|
|
|
|
void MxControlPresenter::FUN_10044540(undefined2)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10044610
|
2023-11-10 13:27:10 -05:00
|
|
|
void MxControlPresenter::ReadyTickle()
|
|
|
|
{
|
|
|
|
MxPresenter::ParseExtra();
|
|
|
|
TickleManager()->UnregisterClient(this);
|
2024-01-11 10:02:55 -05:00
|
|
|
ProgressTickleState(TickleState_Repeating);
|
2023-11-10 13:27:10 -05:00
|
|
|
}
|
2023-12-15 11:41:07 -05:00
|
|
|
|
|
|
|
// STUB: LEGO1 0x10044640
|
|
|
|
void MxControlPresenter::ParseExtra()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x10044820
|
|
|
|
void MxControlPresenter::Enable(MxBool p_enable)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x100448a0
|
|
|
|
MxBool MxControlPresenter::HasTickleStatePassed(TickleState p_tickleState)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
return TRUE;
|
|
|
|
}
|