2023-06-29 04:10:08 -04:00
|
|
|
#include "mxpresenter.h"
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
#include "decomp.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(MxPresenter, 0x40);
|
|
|
|
|
2023-08-28 05:38:46 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bee0
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::DoneTickle()
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = 0;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100b4d50
|
|
|
|
void MxPresenter::Init()
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_currentTickleFlag = 0;
|
2023-06-29 04:10:08 -04:00
|
|
|
m_action = NULL;
|
|
|
|
m_unk0x18 = 0;
|
|
|
|
m_unk0x3c = 0;
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags = 0;
|
2023-06-29 04:10:08 -04:00
|
|
|
m_unk0x10 = 0;
|
|
|
|
m_unk0x14 = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100b4fc0 STUB
|
|
|
|
void MxPresenter::ParseExtra()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bf00
|
2023-06-29 04:10:08 -04:00
|
|
|
MxPresenter::~MxPresenter()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100b5200 STUB
|
2023-07-02 04:05:49 -04:00
|
|
|
MxLong MxPresenter::Tickle()
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100b4d80 STUB
|
2023-07-02 04:05:49 -04:00
|
|
|
MxLong MxPresenter::StartAction(MxStreamController *, MxDSAction *)
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x100b4e40 STUB
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::EndAction()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x100b52d0 STUB
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::Enable(unsigned char)
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000be30
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x14()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000be40
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x18()
|
|
|
|
{
|
2023-07-02 03:00:28 -04:00
|
|
|
ParseExtra();
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << (unsigned char)m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = 2;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000be60
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x1c()
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << (unsigned char)m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = 3;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000be80
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x20()
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << (unsigned char)m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = 4;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bea0
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x24()
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << (unsigned char)m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = 5;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bec0
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x28()
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << (unsigned char)m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = 6;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x1000bf70
|
|
|
|
undefined4 MxPresenter::VTable0x34()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x1000bf80
|
|
|
|
void MxPresenter::InitVirtual()
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
}
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bf90
|
2023-06-29 04:10:08 -04:00
|
|
|
void MxPresenter::VTable0x44(undefined4 param)
|
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
m_previousTickleFlags |= 1 << (unsigned char)m_currentTickleFlag;
|
|
|
|
m_currentTickleFlag = param;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bfb0
|
|
|
|
unsigned char MxPresenter::VTable0x48(unsigned char param)
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
2023-08-28 05:38:46 -04:00
|
|
|
return m_previousTickleFlags & (1 << param);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x1000bfc0
|
|
|
|
undefined4 MxPresenter::VTable0x4c()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-07-02 03:00:28 -04:00
|
|
|
// OFFSET: LEGO1 0x1000bfd0
|
|
|
|
undefined MxPresenter::VTable0x50(undefined4, undefined4)
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|