// // GJBaseGameLayer::spawnObjectsInOrder from 0x1001ec298 to 0x1001ec3f0 (344 bytes) // // 1 xrefs: // > GJBaseGameLayer::spawnGroup @ 0x1001ec218 // // 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::spawnObjectsInOrder( GJBaseGameLayer *a1, cocos2d::CCArray *a2, double a3, std::vector *const a4, int a5, int a6) { cocos2d::ccArray *data; // x9 __int64 num; // x8 char v13; // w27 GameObject **arr; // x25 unsigned __int64 v15; // x26 float v16; // s9 GameObject *v17; // x23 float *v18; // x0 float v19; // s0 if ( a2 ) { if ( !a1->m_spawnAbuse ) { data = a2->data; num = data->num; if ( (_DWORD)num ) { v13 = 0; arr = (GameObject **)data->arr; v15 = (unsigned __int64)&arr[num - 1]; v16 = 0.0; do { v17 = *arr; if ( !*arr ) return; if ( v17->m_classType == Effect ) { if ( GameObject::isSpawnableTrigger(*arr) ) goto LABEL_11; } else if ( v17->m_objectID == 2065 && BYTE1(v17[1].m_fScaleX) == 1 ) { LABEL_11: v18 = (float *)((__int64 (__fastcall *)(GameObject *))v17->getPosition)(v17); if ( (v13 & 1) != 0 ) { v19 = (float)(*v18 - v16) / 311.580109 - a3; if ( v19 > 0.0 ) { GJEffectManager::spawnObject(a1->m_effectManager, v17, v19, a4, a5, a6); LABEL_16: if ( a1->m_spawnAbuse ) return; v13 = 1; goto LABEL_18; } } else { v16 = *v18; } ((void (__fastcall *)(GJBaseGameLayer *, GameObject *, std::vector *const, double))a1->spawnObject)( a1, v17, a4, 0.0); goto LABEL_16; } LABEL_18: ++arr; } while ( (unsigned __int64)arr <= v15 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source