mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
42 lines
662 B
C++
42 lines
662 B
C++
#include "mxeventpresenter.h"
|
|
|
|
#include "decomp.h"
|
|
#include "mxeventmanager.h"
|
|
#include "mxomni.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxEventPresenter, 0x54);
|
|
|
|
// OFFSET: LEGO1 0x100c2b70
|
|
MxEventPresenter::MxEventPresenter()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c2d40
|
|
MxEventPresenter::~MxEventPresenter()
|
|
{
|
|
Destroy();
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c2da0
|
|
void MxEventPresenter::Init()
|
|
{
|
|
m_unk50 = NULL;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100c2de0
|
|
void MxEventPresenter::Destroy()
|
|
{
|
|
MxEventManager* eventManager = EventManager();
|
|
if (eventManager)
|
|
EventManager()->RemovePresenter(*this);
|
|
|
|
m_criticalSection.Enter();
|
|
|
|
if (m_unk50)
|
|
delete m_unk50;
|
|
|
|
Init();
|
|
|
|
m_criticalSection.Leave();
|
|
}
|