2023-06-29 04:10:08 -04:00
|
|
|
#include "legoentitypresenter.h"
|
|
|
|
|
2023-11-02 06:54:08 -04:00
|
|
|
#include "legoomni.h"
|
|
|
|
#include "legovideomanager.h"
|
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(LegoEntityPresenter, 0x50);
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10053440
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoEntityPresenter::LegoEntityPresenter()
|
|
|
|
{
|
2023-10-24 19:38:27 -04:00
|
|
|
Init();
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100535c0
|
2023-11-02 06:54:08 -04:00
|
|
|
void LegoEntityPresenter::Init()
|
|
|
|
{
|
|
|
|
m_unk4c = 0;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100535d0
|
2023-06-29 04:10:08 -04:00
|
|
|
LegoEntityPresenter::~LegoEntityPresenter()
|
|
|
|
{
|
2023-11-02 06:54:08 -04:00
|
|
|
Destroy(TRUE);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10053630
|
2023-11-02 06:54:08 -04:00
|
|
|
undefined4 LegoEntityPresenter::vtable6c(undefined4 p_unknown)
|
|
|
|
{
|
|
|
|
m_unk4c = p_unknown;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10053640
|
2023-11-02 06:54:08 -04:00
|
|
|
void LegoEntityPresenter::Destroy(MxBool p_fromDestructor)
|
|
|
|
{
|
|
|
|
if (VideoManager()) {
|
|
|
|
VideoManager()->RemovePresenter(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
Init();
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10053670
|
2023-11-02 06:54:08 -04:00
|
|
|
void LegoEntityPresenter::Destroy()
|
2023-06-29 04:10:08 -04:00
|
|
|
{
|
2023-11-02 06:54:08 -04:00
|
|
|
Destroy(FALSE);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|