// // LevelEditorLayer::stopTriggersInGroup from 0x1003616a0 to 0x100361800 (352 bytes) // // 1 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x100361268 // // 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 LevelEditorLayer::stopTriggersInGroup(LevelEditorLayer *a1, int a2, float a3) { cocos2d::CCArray *TriggerGroup; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 EffectGameObject **arr; // x23 unsigned __int64 v10; // x24 EffectGameObject *v11; // x21 GJEffectManager *m_effectManager; // x0 ColorAction *ColorAction; // x0 ColorAction *v14; // x22 float v15; // s0 std::__vector_base::pointer begin; // x21 std::__vector_base::pointer end; // x8 signed __int64 v18; // x22 std::__vector_base::pointer v19; // x8 GameObject **v20; // [xsp+8h] [xbp-58h] BYREF TriggerGroup = LevelEditorLayer::getTriggerGroup(a1, a2); if ( TriggerGroup ) { data = TriggerGroup->data; num = data->num; if ( (_DWORD)num ) { arr = (EffectGameObject **)data->arr; v10 = (unsigned __int64)&arr[num - 1]; do { v11 = *arr; if ( !*arr ) break; if ( v11->m_canBeControlled ) { m_effectManager = a1->m_effectManager; if ( v11->m_isColorTrigger ) { ColorAction = GJEffectManager::getColorAction(m_effectManager, v11->m_targetColor); if ( ColorAction->m_uniqueID == v11->m_uniqueID ) { v14 = ColorAction; v15 = a3 - ColorAction->m_actionDelay; ColorAction->m_stepInterval = 0.0; ColorAction->m_deltaTime = 0.0; ColorAction::step(ColorAction, v15); v14->m_stepFinished = 1; GJEffectManager::updateColorAction(a1->m_effectManager, v14); } } else { GJEffectManager::controlActionsForTrigger(m_effectManager, *arr, Stop); } } ++arr; } while ( (unsigned __int64)arr <= v10 ); } } begin = a1->m_delayedSpawnNodes.__begin_; if ( begin != a1->m_delayedSpawnNodes.__end_ ) { do { v20 = (GameObject **)*begin; if ( GameObject::belongsToGroup(*v20, a2) ) { sub_1000115B8((__int64)&a1->m_delayedSpawnNodes2, &v20); end = a1->m_delayedSpawnNodes.__end_; v18 = (char *)end - (char *)(begin + 1); if ( end != begin + 1 ) memmove(begin, begin + 1, (char *)end - (char *)(begin + 1)); v19 = (std::__vector_base::pointer)((char *)begin + v18); a1->m_delayedSpawnNodes.__end_ = (std::__vector_base::pointer)((char *)begin + v18); } else { ++begin; v19 = a1->m_delayedSpawnNodes.__end_; } } while ( begin != v19 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source