// // GJBaseGameLayer::orderSpawnObjects from 0x140245d70 to 0x140245e1c (172 bytes) // // 5 xrefs: // > LevelEditorLayer::onPlaytest @ 0x1402e01be // > PlayLayer::createObjectsFromSetupFinished @ 0x1403adc1a // > @ 0x140682414 // > @ 0x140682448 // > @ 0x1406ce5d4 // // 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::orderSpawnObjects(GJBaseGameLayer *a1) { cocos2d::CCArray *m_spawnObjectsArray; // rdi cocos2d::ccArray *data; // rdi __int64 num; // rax cocos2d::CCObject **arr; // rdi cocos2d::CCObject **i; // rbp cocos2d::CCObject *v7; // rbx __int64 v8; // rax char v9; // [rsp+30h] [rbp+8h] BYREF cocos2d::CCDictionary::removeAllObjects(a1->m_spawnObjects); m_spawnObjectsArray = a1->m_spawnObjectsArray; if ( m_spawnObjectsArray ) { data = m_spawnObjectsArray->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v7 = *arr; if ( !*arr ) break; v8 = ((__int64 (__fastcall *)(cocos2d::CCObject *, char *))v7->__vftable[22].setTag)(*arr, &v9); cocos2d::CCPoint::operator=(&v7[32].m_uID, v8); } } } LevelTools::sortChannelOrderObjects(a1->m_spawnObjectsArray, a1->m_spawnObjects, 0); }