//
// LevelEditorLayer::updatePreviewAnim from 0x368e74 to 0x368ef6 (130 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::togglePreviewAnim @ 0x3ff440
//
// 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 LevelEditorLayer::updatePreviewAnim(LevelEditorLayer *a1)
{
GameManager *v2; // r0
_BOOL4 GameVariable; // r0
unsigned int v4; // r6
bool *p_m_previewAnimations; // r7
int v6; // r0
EnhancedGameObject *v7; // r4
v2 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v2, "0118");
if ( a1->m_previewAnimations != GameVariable )
{
v4 = 0;
p_m_previewAnimations = &a1->m_previewAnimations;
a1->m_previewAnimations = GameVariable;
while ( v4 < cocos2d::CCArray::count(a1->m_objects) )
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_objects, v4);
v7 = (EnhancedGameObject *)v6;
if ( *(_DWORD *)(v6 + 1076) == 2 )
AnimatedGameObject::updateObjectAnimation((AnimatedGameObject *)v6);
if ( !*p_m_previewAnimations && ((int (__fastcall *)(EnhancedGameObject *))v7->getHasSyncedAnimation)(v7) )
EnhancedGameObject::resetSyncedAnimation(v7);
if ( !*p_m_previewAnimations )
{
if ( ((int (__fastcall *)(EnhancedGameObject *))v7->getHasRotateAction)(v7) )
EnhancedGameObject::updateRotateAction(v7, 0.0);
}
++v4;
}
}
}