//
// GJBaseGameLayer::controlGradientTrigger from 0x100136ce0 to 0x100136d39 (89 bytes)
//
// 0 xrefs:
//
// 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; // ecx
cocos2d::CCObject *v4; // rax
cocos2d::CCObject *v5; // rbx
if ( a3 == Resume )
{
GJBaseGameLayer::triggerGradientCommand(a1, a2);
}
else
{
m_gradientID = 999;
if ( a2->m_gradientID < 999 )
m_gradientID = a2->m_gradientID;
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;
}
}
}