// // GJBaseGameLayer::moveObjects from 0x862f04 to 0x863034 (304 bytes) // // 6 xrefs: // > GJBaseGameLayer::moveObject @ 0x86306c // > GJBaseGameLayer::processMoveActions @ 0x86313c // > GJBaseGameLayer::processAdvancedFollowAction @ 0x8849e8 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x884a58 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x884af4 // > @ 0x99090 // // 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::moveObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2, double a3, double a4, bool a5) { int v9; // w0 cocos2d::ccArray *data; // x3 unsigned int num; // w1 cocos2d::CCObject **arr; // x21 __int64 v13; // x1 char *v14; // x23 cocos2d::CCObject *v15; // x19 unsigned int m_commandIndex; // w0 double v17; // d1 int v18; // s0 if ( a2 ) { v9 = cocos2d::CCArray::count(a2); data = a2->data; num = data->num; a1->m_movedCount += v9; if ( num ) { arr = data->arr; v13 = 8LL * num - 8; v14 = (char *)arr + v13; if ( arr <= (cocos2d::CCObject **)((char *)arr + v13) ) { do { v15 = *arr; if ( !*arr ) break; if ( !BYTE2(v15[22].m_unknown2) ) { m_commandIndex = a1->m_gameState.m_commandIndex; if ( v15[21].m_nZOrder != m_commandIndex ) { v17 = *(double *)&v15[16].m_uIndexInArray; v15[21].m_nZOrder = m_commandIndex; *(float *)&v17 = v17; *(float *)&v18 = *(double *)&v15[16].m_unknown2; v15[21].m_uIndexInArray = LODWORD(v17); v15[21].m_uUnknown = v18; GameObject::dirtifyObjectRect((GameObject *)v15); } } if ( a3 != 0.0 && !LOBYTE(v15[12].m_uUnknown) ) *(double *)&v15[16].m_uIndexInArray = *(double *)&v15[16].m_uIndexInArray + a3; if ( a4 != 0.0 ) *(double *)&v15[16].m_unknown2 = *(double *)&v15[16].m_unknown2 + a4; ++arr; GameObject::dirtifyObjectPos((GameObject *)v15); a1->updateObjectSection(a1, (GameObject *)v15); } while ( v14 >= (char *)arr ); } } a1->updateDisabledObjectsLastPos(a1, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source