//
// EnhancedGameObject::updateAnimateOnTrigger from 0x100348f44 to 0x100349010 (204 bytes)
//
// 41 xrefs:
// > ??> @ 0x1007d07a0
// > ??> @ 0x1007f5820
// > ??> @ 0x1007f6058
// > ??> @ 0x1007f6850
// > ??> @ 0x1007f7048
// > ??> @ 0x1007f7840
// > ??> @ 0x1007f8038
// > ??> @ 0x1007f8830
// > ??> @ 0x1007fa020
// > ??> @ 0x1007fa888
// > ??> @ 0x1007fb098
// > ??> @ 0x1007fb8a8
// > ??> @ 0x1007fc0b8
// > ??> @ 0x1007fc8c8
// > ??> @ 0x1007fd0d8
// > ??> @ 0x1007fd8e8
// > ??> @ 0x1007fe0f8
// > ??> @ 0x1007fe908
// > ??> @ 0x1007ff118
// > ??> @ 0x1007ff940
// > ??> @ 0x100800198
// > ??> @ 0x1008009c0
// > ??> @ 0x1008011e8
// > ??> @ 0x100801a10
// > ??> @ 0x100802238
// > ??> @ 0x100802a48
// > ??> @ 0x100803258
// > ??> @ 0x100803a68
// > ??> @ 0x100804278
// > ??> @ 0x100804a88
// > ??> @ 0x100805298
// > ??> @ 0x100805aa8
// > ??> @ 0x1008062b8
// > ??> @ 0x100806ac8
// > ??> @ 0x1008072d8
// > ??> @ 0x100807ae8
// > ??> @ 0x1008082f8
// > ??> @ 0x100808b08
// > ??> @ 0x100809318
// > ??> @ 0x100809b28
// > ??> @ 0x10080a338
//
// 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 EnhancedGameObject::updateAnimateOnTrigger(EnhancedGameObject *a1, bool a2)
{
GameManager *v3; // x0
cocos2d::CCObject *v4; // x0
__int64 v5; // x1
if ( a1->m_hasCustomAnimation && a1->m_animateOnTrigger )
{
if ( a2 )
{
a1->m_isDisabled2 = 0;
((void (__fastcall *)(EnhancedGameObject *, __int64))a1->setOpacity)(a1, 255);
a1->m_maybeAnimationVariableXInt = -1;
a1->m_animateOnTrigger = 0;
v3 = GameManager::sharedState();
v4 = cocos2d::CCDictionary::objectForKey(v3->m_defaultFrames, a1->m_objectID);
if ( v4 )
v5 = LODWORD(v4[1].__vftable);
else
v5 = 1;
((void (__fastcall *)(EnhancedGameObject *, __int64, float))a1->updateSyncedAnimation)(a1, v5, 0.0);
a1->m_animateOnTrigger = 1;
}
else
{
a1->m_animationTriggered = 0;
*(_OWORD *)&a1->m_animationRandomizedStartValue = 0u;
a1->m_isDisabled2 = 1;
((void (__fastcall *)(EnhancedGameObject *, _QWORD))a1->setOpacity)(a1, 0);
}
}
}