//
// CreateParticlePopup::onAnimateOnTrigger from 0x1002ceee4 to 0x1002cef5c (120 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x1002cced4
//
// 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 CreateParticlePopup::onAnimateOnTrigger(CreateParticlePopup *a1, cocos2d::CCObject *a2)
{
bool v2; // w8
ParticleGameObject *m_targetObject; // x9
cocos2d::CCArray *m_targetObjects; // x0
unsigned int v6; // w20
v2 = !a1->m_animateOnTrigger;
a1->m_animateOnTrigger = v2;
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
m_targetObject->m_animateOnTrigger = v2;
}
else
{
m_targetObjects = a1->m_targetObjects;
if ( m_targetObjects && (unsigned int)sub_10024A36C((__int64)m_targetObjects) )
{
v6 = 0;
do
*(_BYTE *)(sub_10024A388((__int64)a1->m_targetObjects, v6++) + 1417) = a1->m_animateOnTrigger;
while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_targetObjects) );
}
}
}