//
// GJBaseGameLayer::controlGradientTrigger from 0x1001ee40c to 0x1001ee468 (92 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001ede18
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee5a4
//
// 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 GJBaseGameLayer::controlGradientTrigger(
GJBaseGameLayer *a1,
GradientTriggerObject *a2,
GJActionCommand a3)
{
int m_gradientID; // w8
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x19
if ( a3 == Resume )
{
GJBaseGameLayer::triggerGradientCommand(a1, a2);
}
else
{
m_gradientID = a2->m_gradientID;
if ( m_gradientID >= 999 )
m_gradientID = 999;
v4 = cocos2d::CCDictionary::objectForKey(a1->m_gradientLayers, m_gradientID);
if ( v4 )
{
v5 = v4;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v4->__vftable[6].acceptVisitor)(v4, 0);
*(_QWORD *)&v5[10].m_uAutoReleaseCount = 0;
}
}
}