mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
implement LegoPathPresenter (#238)
* implement LegoPathPresenter implement some LegoPathPresenter functions * Update legopathpresenter.cpp * Minor fixes * Order functions --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -1,7 +1,67 @@
|
||||
#include "legopathpresenter.h"
|
||||
#include "legoomni.h"
|
||||
#include "legovideomanager.h"
|
||||
#include "mxautolocker.h"
|
||||
|
||||
// OFFSET: LEGO1 0x100448d0 STUB
|
||||
DECOMP_SIZE_ASSERT(LegoPathPresenter, 0x54);
|
||||
|
||||
// OFFSET: LEGO1 0x100448d0
|
||||
LegoPathPresenter::LegoPathPresenter()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10044ab0
|
||||
void LegoPathPresenter::Init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10044b40
|
||||
MxResult LegoPathPresenter::AddToManager()
|
||||
{
|
||||
MxResult status = FAILURE;
|
||||
|
||||
if (VideoManager()) {
|
||||
VideoManager()->AddPresenter(*this);
|
||||
status = SUCCESS;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10044b70
|
||||
void LegoPathPresenter::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
if (VideoManager())
|
||||
VideoManager()->RemovePresenter(*this);
|
||||
|
||||
{
|
||||
MxAutoLocker lock(&this->m_criticalSection);
|
||||
Init();
|
||||
}
|
||||
|
||||
if (!p_fromDestructor)
|
||||
MxMediaPresenter::Destroy(FALSE);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10044c10
|
||||
void LegoPathPresenter::Destroy()
|
||||
{
|
||||
Destroy(FALSE);
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10044d40
|
||||
void LegoPathPresenter::RepeatingTickle()
|
||||
{
|
||||
if (this->m_action->GetDuration() == -1)
|
||||
return;
|
||||
|
||||
EndAction();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10044d60 STUB
|
||||
void LegoPathPresenter::ParseExtra()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user