//
// EnhancedGameObject::triggerAnimation from 0x52915e to 0x529198 (58 bytes)
//
// 1 xrefs:
// > EnhancedGameObject::animationTriggered @ 0x35315c
//
// 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 *v2; // r3
if ( !a1->m_animateOnlyWhenActive || a1->m_isActivated )
{
a1->m_animationTriggered = 1;
a1->m_isDisabled2 = 0;
v2 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_maybeAnimationVariableXInt = -1;
((void (__fastcall *)(EnhancedGameObject *, _DWORD))v2->updateSyncedAnimation)(a1, 0);
a1->m_animationRandomizedStartValue = 0;
}
}