//
// EnhancedGameObject::triggerAnimation from 0x9b0c30 to 0x9b0c8c (92 bytes)
//
// 2 xrefs:
// > EnhancedGameObject::animationTriggered @ 0x6414e4
// > ??> @ 0xae600
//
// 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 EnhancedGameObject::triggerAnimation(EnhancedGameObject *a1)
{
EnhancedGameObject_vtbl *v1; // x1
void (__fastcall *updateSyncedAnimation)(EnhancedGameObject *__hidden, float, int); // x3
if ( !a1->m_animateOnlyWhenActive || a1->m_isActivated )
{
v1 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_isDisabled2 = 0;
updateSyncedAnimation = v1->updateSyncedAnimation;
a1->m_animationTriggered = 1;
a1->m_maybeAnimationVariableXInt = -1;
((void (__fastcall *)(EnhancedGameObject *, __int64, float))updateSyncedAnimation)(a1, 0xFFFFFFFFLL, 0.0);
a1->m_animationRandomizedStartValue = 0;
}
}