//
// LevelEditorLayer::stopTriggersInGroup from 0x36da28 to 0x36db48 (288 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x36dfcc
//
// 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 LevelEditorLayer::stopTriggersInGroup(LevelEditorLayer *a1, int a2, float a3)
{
cocos2d::CCArray *TriggerGroup; // r0
DelayedSpawnNode ***p_m_reserveEnd; // r7
DelayedSpawnNode **m_start; // r6
unsigned __int8 **p_m_finish; // r4
DelayedSpawnNode ***v10; // r10
int v11; // r7
unsigned __int8 **v12; // r4
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v15; // r10
EffectGameObject *v16; // r6
EffectGameObject *v17; // t1
DelayedSpawnNode **v18; // r5
GameObject *m_gameObject; // r0
size_t v20; // r2
GJEffectManager *m_effectManager; // r0
ColorAction *ColorAction; // r0
ColorAction *v23; // r7
float m_actionDelay; // s15
GameObject **v25; // [sp+0h] [bp-Ch] BYREF
TriggerGroup = LevelEditorLayer::getTriggerGroup(a1, a2);
if ( TriggerGroup )
{
data = TriggerGroup->data;
if ( data->num )
{
arr = data->arr;
v15 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v15 )
{
v17 = (EffectGameObject *)*arr++;
v16 = v17;
if ( !v17 )
break;
if ( v16->m_canBeControlled )
{
m_effectManager = a1->m_effectManager;
if ( v16->m_isColorTrigger )
{
ColorAction = GJEffectManager::getColorAction(m_effectManager, v16->m_targetColor);
v23 = ColorAction;
if ( ColorAction->m_uniqueID == v16->m_uniqueID )
{
m_actionDelay = ColorAction->m_actionDelay;
ColorAction->m_stepInterval = 0.0;
ColorAction->m_deltaTime = 0.0;
ColorAction::step(ColorAction, a3 - m_actionDelay);
v23->m_stepFinished = 1;
GJEffectManager::updateColorAction(a1->m_effectManager, v23);
}
}
else
{
GJEffectManager::controlActionsForTrigger(m_effectManager, v16, (GJActionCommand)v16->m_isColorTrigger);
}
}
}
}
}
p_m_reserveEnd = &a1->m_delayedSpawnNodes.m_reserveEnd;
m_start = a1->m_delayedSpawnNodes.m_start;
p_m_finish = &a1->m_toggledGroupStates.m_finish;
v10 = (DelayedSpawnNode ***)(p_m_finish + 15);
v11 = (int)(p_m_reserveEnd + 1);
v12 = p_m_finish + 14;
while ( m_start != *v10 )
{
v18 = m_start + 1;
m_gameObject = (*m_start)->m_gameObject;
v25 = (GameObject **)*m_start;
if ( GameObject::belongsToGroup(m_gameObject, a2) )
{
std::vector::push_back(v11, &v25);
if ( v18 != *v10 )
{
v20 = (char *)*v10 - (char *)v18;
if ( v20 >> 2 )
memmove(m_start, m_start + 1, v20);
}
v12[1] -= 4;
}
else
{
++m_start;
}
}
}