// // GJBaseGameLayer::triggerAreaEffect from 0x1402271c0 to 0x140227478 (696 bytes) // // 4 xrefs: // > EffectGameObject::triggerObject @ 0x1404a7840 // > @ 0x1406802e8 // > @ 0x14068031c // > @ 0x1406cd86c // // 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 GJBaseGameLayer::triggerAreaEffect(GJBaseGameLayer *a1, EnterEffectObject *a2) { int m_targetGroupID; // esi int v5; // ebp __int64 v6; // rax char *v7; // rcx EnterEffectInstance *v8; // rbx EnterEffectInstance *v9; // rdi cocos2d::CCArray *Group; // rax cocos2d::ccArray *data; // rax __int64 num; // rcx EnterEffectObject **arr; // r15 EnterEffectObject **i; // rbp EnterEffectObject *v15; // rdi __int64 v16; // rax char *v17; // rbx EnterEffectInstance *v18; // rsi EnterEffectInstance *j; // rbx switch ( a2->m_objectID ) { case 0xBBE: GJBaseGameLayer::addAreaEffect(a1, a2, &a1->m_gameState.m_moveEffectInstances, (GJAreaActionType)0); return; case 0xBBF: GJBaseGameLayer::addAreaEffect(a1, a2, &a1->m_gameState.m_rotateEffectInstances, Rotate); return; case 0xBC0: GJBaseGameLayer::addAreaEffect(a1, a2, &a1->m_gameState.m_scaleEffectInstances, (GJAreaActionType)2); return; case 0xBC1: GJBaseGameLayer::addAreaEffect(a1, a2, &a1->m_gameState.m_fadeEffectInstances, (GJAreaActionType)3); return; case 0xBC2: GJBaseGameLayer::addAreaEffect(a1, a2, &a1->m_gameState.m_tintEffectInstances, Tint); return; case 0xBC3: case 0xBC4: case 0xBC5: case 0xBC6: case 0xBC7: m_targetGroupID = a2->m_targetGroupID; if ( a2->m_useEffectID ) { v5 = 0; while ( 1 ) { switch ( v5 ) { case 0: v6 = 1624; goto LABEL_19; case 1: v6 = 1648; goto LABEL_19; case 2: v6 = 1672; goto LABEL_19; } if ( v5 == 3 ) break; if ( v5 == 4 ) { v6 = 1720; LABEL_19: v7 = (char *)a1 + v6; if ( (char *)a1 + v6 ) { v8 = *(EnterEffectInstance **)v7; v9 = *((EnterEffectInstance **)v7 + 1); if ( *(EnterEffectInstance **)v7 != v9 ) { do { if ( v8->m_gameObject->m_effectID == m_targetGroupID ) { EnterEffectInstance::loadTransitions(v8, a2, a1->m_gameState.m_totalTime); if ( m_targetGroupID > 0 ) break; } ++v8; } while ( v8 != v9 ); } } } if ( ++v5 >= 5 ) return; } v6 = 1696; goto LABEL_19; } Group = GJBaseGameLayer::getGroup(a1, m_targetGroupID); if ( Group ) { data = Group->data; num = data->num; if ( (_DWORD)num ) { arr = (EnterEffectObject **)data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v15 = *arr; if ( !*arr ) return; if ( v15->m_unk390 == 45 ) { switch ( v15->m_objectID ) { case 0xBBE: v16 = 1624; goto LABEL_41; case 0xBBF: v16 = 1648; goto LABEL_41; case 0xBC0: v16 = 1672; goto LABEL_41; case 0xBC1: v16 = 1696; goto LABEL_41; case 0xBC2: v16 = 1720; LABEL_41: v17 = (char *)a1 + v16; if ( (char *)a1 + v16 ) { v18 = *((EnterEffectInstance **)v17 + 1); for ( j = *(EnterEffectInstance **)v17; j != v18; ++j ) { if ( j->m_gameObject == v15 ) EnterEffectInstance::loadTransitions(j, a2, a1->m_gameState.m_totalTime); } } break; } } } } } return; default: return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source