2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcontrolpresenter.h"
|
|
|
|
|
2023-11-10 13:27:10 -05:00
|
|
|
#include "legoomni.h"
|
|
|
|
#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;
|
|
|
|
this->m_unk0x50 = 0;
|
|
|
|
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-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10044110
|
2023-11-10 13:27:10 -05:00
|
|
|
MxControlPresenter::~MxControlPresenter()
|
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
if (this->m_unk0x58) {
|
|
|
|
delete this->m_unk0x58;
|
2023-11-10 13:27:10 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
|
|
|
|
m_currentTickleState = TickleState_Repeating;
|
|
|
|
}
|