isle/LEGO1/legopathpresenter.cpp

68 lines
1.1 KiB
C++
Raw Normal View History

#include "legopathpresenter.h"
2023-10-24 19:38:27 -04:00
#include "legoomni.h"
#include "legovideomanager.h"
#include "mxautolocker.h"
DECOMP_SIZE_ASSERT(LegoPathPresenter, 0x54);
// OFFSET: LEGO1 0x100448d0
LegoPathPresenter::LegoPathPresenter()
{
2023-10-24 19:38:27 -04:00
Init();
}
// OFFSET: LEGO1 0x10044ab0
void LegoPathPresenter::Init()
{
}
// OFFSET: LEGO1 0x10044b40
MxResult LegoPathPresenter::AddToManager()
{
2023-10-24 19:38:27 -04:00
MxResult status = FAILURE;
2023-10-24 19:38:27 -04:00
if (VideoManager()) {
VideoManager()->AddPresenter(*this);
status = SUCCESS;
}
2023-10-24 19:38:27 -04:00
return status;
}
// OFFSET: LEGO1 0x10044b70
void LegoPathPresenter::Destroy(MxBool p_fromDestructor)
{
2023-10-24 19:38:27 -04:00
if (VideoManager())
VideoManager()->RemovePresenter(*this);
2023-10-24 19:38:27 -04:00
{
MxAutoLocker lock(&this->m_criticalSection);
Init();
}
2023-10-24 19:38:27 -04:00
if (!p_fromDestructor)
MxMediaPresenter::Destroy(FALSE);
}
// OFFSET: LEGO1 0x10044c10
void LegoPathPresenter::Destroy()
{
2023-10-24 19:38:27 -04:00
Destroy(FALSE);
}
// OFFSET: LEGO1 0x10044d40
void LegoPathPresenter::RepeatingTickle()
{
2023-10-24 19:38:27 -04:00
if (this->m_action->GetDuration() == -1)
return;
2023-10-24 19:38:27 -04:00
EndAction();
}
// OFFSET: LEGO1 0x10044d60 STUB
void LegoPathPresenter::ParseExtra()
{
2023-10-24 19:38:27 -04:00
// TODO
}