// // GJBaseGameLayer::controlTriggersInGroup from 0x1001edd74 to 0x1001ee004 (656 bytes) // // 1 xrefs: // > TriggerControlGameObject::triggerObject @ 0x100398110 // // 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::controlTriggersInGroup(GJBaseGameLayer *a1, int a2, GJActionCommand a3) { cocos2d::CCArray *Group; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 EnterEffectObject **arr; // x22 unsigned __int64 v9; // x23 EnterEffectObject *v10; // x21 int m_objectID; // w8 std::__vector_base::pointer begin; // x8 std::__vector_base::pointer end; // x9 char v14; // w10 __int64 v15; // x11 std::vector *p_m_rotateEffectInstances; // x2 Group = GJBaseGameLayer::getGroup(a1, a2); if ( Group ) { data = Group->data; num = data->num; if ( (_DWORD)num ) { arr = (EnterEffectObject **)data->arr; v9 = (unsigned __int64)&arr[num - 1]; do { v10 = *arr; if ( !*arr ) return; if ( v10->m_canBeControlled ) { m_objectID = v10->m_objectID; if ( m_objectID > 2998 ) { if ( m_objectID <= 3008 ) { if ( m_objectID > 3006 ) { if ( m_objectID == 3007 ) p_m_rotateEffectInstances = &a1->m_gameState.m_rotateEffectInstances; else p_m_rotateEffectInstances = &a1->m_gameState.m_scaleEffectInstances; goto LABEL_56; } if ( m_objectID != 2999 ) { if ( m_objectID == 3006 ) { p_m_rotateEffectInstances = &a1->m_gameState.m_moveEffectInstances; LABEL_56: GJBaseGameLayer::controlAreaEffect((GJBaseGameLayer *)Group, *arr, p_m_rotateEffectInstances, a3); goto LABEL_57; } goto LABEL_50; } goto LABEL_47; } if ( m_objectID <= 3015 ) { if ( m_objectID == 3009 ) { p_m_rotateEffectInstances = &a1->m_gameState.m_fadeEffectInstances; goto LABEL_56; } if ( m_objectID == 3010 ) { p_m_rotateEffectInstances = &a1->m_gameState.m_tintEffectInstances; goto LABEL_56; } goto LABEL_50; } if ( m_objectID == 3016 ) { GJBaseGameLayer::controlAdvancedFollowCommand(a1, (AdvancedFollowTriggerObject *)*arr, -1, a3); goto LABEL_57; } if ( m_objectID == 3602 ) { GJBaseGameLayer::stopSFXTrigger(a1, (SFXTriggerGameObject *)*arr); goto LABEL_57; } if ( m_objectID != 3604 ) goto LABEL_50; GJBaseGameLayer::controlEventLink(a1, v10->m_uniqueID, -1, a3); } else { if ( m_objectID <= 1915 ) { if ( m_objectID <= 1614 ) { if ( m_objectID == 901 ) { if ( v10->m_isDynamicMode ) GJBaseGameLayer::controlDynamicCommand( (GJBaseGameLayer *)Group, *arr, -1, &a1->m_gameState.m_dynamicMoveActions, a3); goto LABEL_50; } if ( m_objectID != 1346 || !v10->m_isDynamicMode ) { LABEL_50: GJEffectManager::controlActionsForTrigger(a1->m_effectManager, v10, a3); goto LABEL_57; } begin = a1->m_gameState.m_dynamicRotateActions.__begin_; end = a1->m_gameState.m_dynamicRotateActions.__end_; while ( 2 ) { if ( begin == end ) goto LABEL_50; if ( begin->m_gameObject1 == v10 ) { v14 = 1; switch ( a3 ) { case Stop: v15 = 77; goto LABEL_31; case Pause: goto LABEL_29; case Resume: v14 = 0; LABEL_29: begin->m_unkBool3 = v14; v15 = 79; LABEL_31: *((_BYTE *)&begin->m_gameObject1 + v15) = v14; break; } } ++begin; continue; } } if ( m_objectID == 1615 ) { LOBYTE(v10->m_anglePosition.y) = a3 != Resume; goto LABEL_57; } if ( m_objectID != 1913 ) goto LABEL_50; goto LABEL_47; } if ( (unsigned int)(m_objectID - 2903) > 0x15 ) goto LABEL_45; if ( ((1 << (m_objectID - 87)) & 0x3F7FD6) == 0 ) { if ( m_objectID != 2903 ) { LABEL_45: if ( m_objectID != 1916 && m_objectID != 2015 ) goto LABEL_50; LABEL_47: GJGameState::controlTweenAction(&a1->m_gameState, v10->m_uniqueID, -1, a3); goto LABEL_57; } GJBaseGameLayer::controlGradientTrigger(a1, (GradientTriggerObject *)*arr, a3); } } } LABEL_57: ++arr; } while ( (unsigned __int64)arr <= v9 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source