mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 23:48:12 -05:00
f7dcdf9894
* MxFlcPresenter: vtable70 * begin work on MxFlcPresenter's m_unk64 * Add another function that makes use of the FLIC header * Remove space --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
49 lines
946 B
C++
49 lines
946 B
C++
#include "mxloopingflcpresenter.h"
|
|
|
|
#include "decomp.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxLoopingFlcPresenter, 0x6c);
|
|
|
|
// OFFSET: LEGO1 0x100b4310
|
|
MxLoopingFlcPresenter::MxLoopingFlcPresenter()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100b43b0
|
|
MxLoopingFlcPresenter::~MxLoopingFlcPresenter()
|
|
{
|
|
Destroy(TRUE);
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100b4410
|
|
void MxLoopingFlcPresenter::Init()
|
|
{
|
|
this->m_unk68 = 0;
|
|
this->m_flags &= 0xfd;
|
|
this->m_flags &= 0xfb;
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100b4432 STUB
|
|
void MxLoopingFlcPresenter::Destroy(MxBool p_fromDestructor)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// OFFSET: LEGO1 0x100b4470
|
|
void MxLoopingFlcPresenter::NextFrame()
|
|
{
|
|
MxStreamChunk* chunk = NextChunk();
|
|
|
|
if (chunk->GetFlags() & MxStreamChunk::Flag_Bit2) {
|
|
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
|
|
m_currentTickleState = TickleState_Repeating;
|
|
}
|
|
else {
|
|
LoadFrame(chunk);
|
|
AppendChunk(chunk);
|
|
m_unk68 += m_flicHeader->speed;
|
|
}
|
|
|
|
m_subscriber->FUN_100b8390(chunk);
|
|
}
|