mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
bc5ca621a4
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
49 lines
951 B
C++
49 lines
951 B
C++
#include "mxloopingflcpresenter.h"
|
|
|
|
#include "decomp.h"
|
|
|
|
DECOMP_SIZE_ASSERT(MxLoopingFlcPresenter, 0x6c);
|
|
|
|
// FUNCTION: LEGO1 0x100b4310
|
|
MxLoopingFlcPresenter::MxLoopingFlcPresenter()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100b43b0
|
|
MxLoopingFlcPresenter::~MxLoopingFlcPresenter()
|
|
{
|
|
Destroy(TRUE);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100b4410
|
|
void MxLoopingFlcPresenter::Init()
|
|
{
|
|
this->m_unk0x68 = 0;
|
|
this->m_flags &= 0xfd;
|
|
this->m_flags &= 0xfb;
|
|
}
|
|
|
|
// STUB: LEGO1 0x100b4432
|
|
void MxLoopingFlcPresenter::Destroy(MxBool p_fromDestructor)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// FUNCTION: 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_unk0x68 += m_flicHeader->speed;
|
|
}
|
|
|
|
m_subscriber->FUN_100b8390(chunk);
|
|
}
|