// // GJBaseGameLayer::spawnObjectsInOrder from 0x46ffa0 to 0x47008c (236 bytes) // // 1 xrefs: // > GJBaseGameLayer::spawnGroup @ 0x4817f0 // // 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::spawnObjectsInOrder( GJBaseGameLayer *a1, cocos2d::CCArray *a2, double a3, std::vector *const a4, int a5, int a6) { cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r5 float v10; // s20 _BOOL4 m_spawnAbuse; // r6 cocos2d::CCObject **v12; // r10 bool *p_m_spawnAbuse; // r11 int v14; // r4 int v15; // t1 int isSpawnableTrigger; // r0 int (__fastcall *v17)(int); // r3 float v18; // s14 if ( !a1->m_spawnAbuse ) { if ( a2 ) { data = a2->data; if ( data->num ) { arr = data->arr; v10 = 0.0; m_spawnAbuse = a1->m_spawnAbuse; v12 = &arr[data->num] + 0x3FFFFFFF; p_m_spawnAbuse = &a1->m_spawnAbuse; while ( 1 ) { while ( 1 ) { if ( arr > v12 ) return; v15 = (int)*arr++; v14 = v15; if ( !v15 ) return; if ( *(_DWORD *)(v14 + 1076) != 1 ) break; isSpawnableTrigger = GameObject::isSpawnableTrigger((GameObject *)v14); LABEL_11: if ( isSpawnableTrigger ) { v17 = *(int (__fastcall **)(int))(*(_DWORD *)v14 + 96); if ( !m_spawnAbuse ) { v10 = *(float *)v17(v14); LABEL_15: ((void (__fastcall *)(GJBaseGameLayer *, int, _DWORD, _DWORD, std::vector *const))a1->spawnObject)( a1, v14, 0, 0, a4); goto LABEL_17; } v18 = (float)(*(float *)v17(v14) - v10) / 311.580109 - a3; if ( v18 <= 0.0 ) goto LABEL_15; GJEffectManager::spawnObject(a1->m_effectManager, (GameObject *)v14, v18, a4, a5, a6); LABEL_17: if ( *p_m_spawnAbuse ) return; m_spawnAbuse = 1; } } if ( *(_DWORD *)(v14 + 884) == 2065 ) { isSpawnableTrigger = *(unsigned __int8 *)(v14 + 1229); goto LABEL_11; } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source