//
// SpecialAnimGameObject::updateSyncedAnimation from 0x10025d7a0 to 0x10025d895 (245 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c8f90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SpecialAnimGameObject::updateSyncedAnimation(SpecialAnimGameObject *a1, float a2, int a3)
{
int m_objectID; // eax
int m_maybeAnimationVariableXInt; // eax
bool v5; // zf
EnhancedGameObject::updateSyncedAnimation(a1, a2, -1);
if ( !a1->m_disableAnimShine )
{
m_objectID = a1->m_objectID;
switch ( m_objectID )
{
case 2055:
v5 = a1->m_maybeAnimationVariableXInt == 1;
a1->m_skipMainColorUpdate = 0;
if ( v5 )
{
((void (__fastcall *)(SpecialAnimGameObject *, void *))a1->updateMainColor)(a1, &unk_1008182F0);
a1->m_skipMainColorUpdate = 1;
}
break;
case 2047:
v5 = a1->m_maybeAnimationVariableXInt == 1;
*(_WORD *)&a1->m_skipMainColorUpdate = 0;
if ( v5 )
{
((void (__fastcall *)(SpecialAnimGameObject *, void *))a1->updateMainColor)(a1, &unk_1008182F0);
((void (__fastcall *)(SpecialAnimGameObject *, void *))a1->updateSecondaryColor)(a1, &unk_1008182F0);
*(_WORD *)&a1->m_skipMainColorUpdate = 257;
}
break;
case 2046:
m_maybeAnimationVariableXInt = a1->m_maybeAnimationVariableXInt;
a1->m_skipSecondaryColorUpdate = 0;
if ( m_maybeAnimationVariableXInt >= 4 || m_maybeAnimationVariableXInt == 1 )
{
((void (__fastcall *)(SpecialAnimGameObject *, void *))a1->updateSecondaryColor)(a1, &unk_1008182F0);
a1->m_skipSecondaryColorUpdate = 1;
}
break;
}
}
}