// // GJBaseGameLayer::processAreaRotateGroupAction from 0x47d930 to 0x47db58 (552 bytes) // // 1 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x496a70 // // 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::processAreaRotateGroupAction( GJBaseGameLayer *a1, cocos2d::CCArray *a2, EnterEffectInstance *a3, cocos2d::CCPoint a4, int a5, int a6, int a7, int a8, int a9, bool a10, bool a11) { cocos2d::CCArray *num; // r4 cocos2d::ccArray *data; // r3 cocos2d::CCObject **arr; // r3 char *v16; // r6 cocos2d::CCObject **v18; // r2 cocos2d::CCObject **v19; // r8 cocos2d::CCArray *v20; // r6 int v21; // r11 int v22; // t1 int v23; // r3 int v24; // r3 _BOOL4 v25; // r0 float AreaObjectValue; // s15 float v27; // s17 float v28; // s16 int v29; // r3 cocos2d::CCArray *TargetGroup; // [sp+8h] [bp-2Ch] unsigned int v31; // [sp+14h] [bp-20h] _BOOL4 v32; // [sp+18h] [bp-1Ch] cocos2d::CCPoint *x_low; // [sp+1Ch] [bp-18h] GameObject *TargetGroupOrigin; // [sp+24h] [bp-10h] bool v35; // [sp+2Bh] [bp-9h] BYREF num = a2; x_low = (cocos2d::CCPoint *)LODWORD(a4.x); a1->m_areaRotatedCount += cocos2d::CCArray::count(a2); if ( num ) { data = num->data; num = (cocos2d::CCArray *)data->num; if ( data->num ) { arr = data->arr; v16 = (char *)&num[19173961].m_uID + 3; num = nullptr; v18 = &arr[(_DWORD)v16]; v19 = arr; v20 = nullptr; v31 = (unsigned int)v18; while ( 1 ) { if ( (unsigned int)v19 > v31 ) goto LABEL_8; v22 = (int)*v19++; v21 = v22; if ( !v22 ) goto LABEL_8; if ( *(_BYTE *)(v21 + 657) ) break; v23 = *(_DWORD *)(v21 + 528); if ( v23 <= a5 && v23 >= SLODWORD(a4.y) ) { v24 = *(_DWORD *)(v21 + 532); if ( v24 <= a7 && v24 >= a6 ) break; } LABEL_23: ++a8; } v25 = GJBaseGameLayer::resetAreaObjectValues(a1, (GameObject *)v21, 1); v35 = 0; v32 = v25; AreaObjectValue = GJBaseGameLayer::getAreaObjectValue(a1, a3, (GameObject *)v21, x_low, &v35); if ( AreaObjectValue < 1.0 ) { v27 = a3->m_rotation + (float)(a3->m_rotationVariance * a1->m_varianceValues.__elems_[*(__int16 *)(v21 + 860) + 18]); if ( v27 != 0.0 ) { v28 = v27 * (float)(1.0 - GJBaseGameLayer::getEasedAreaValue(a1, (GameObject *)v21, a3, AreaObjectValue, v35, a8)); if ( !(_BYTE)a9 ) { if ( v28 != 0.0 ) { *(float *)(v21 + 576) = *(float *)(v21 + 576) + v28; *(float *)(v21 + 580) = *(float *)(v21 + 580) + v28; *(float *)(v21 + 584) = *(float *)(v21 + 584) + v28; *(float *)(v21 + 588) = *(float *)(v21 + 588) + v28; if ( a10 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v21 + 732))(v21, 0); if ( *(_DWORD *)(v21 + 776) != 7 ) { v29 = *(unsigned __int8 *)(v21 + 636); *(_BYTE *)(v21 + 724) = 1; *(_BYTE *)(v21 + 725) = 1; if ( !v29 ) GameObject::calculateOrientedBox((GameObject *)v21); } } goto LABEL_20; } goto LABEL_17; } if ( (_BYTE)a9 ) { v28 = 0.0; LABEL_17: TargetGroup = GJBaseGameLayer::getTargetGroup(a1, a3->m_targetGroupIndex, *(_DWORD *)(v21 + 772)); TargetGroupOrigin = (GameObject *)GJBaseGameLayer::getTargetGroupOrigin( a1, a3->m_targetGroupIndex, *(_DWORD *)(v21 + 772)); num = (cocos2d::CCArray *)((char *)&num->data + cocos2d::CCArray::count(TargetGroup) - 53); if ( a3->m_gameObject->m_dontEditAreaParent ) *(_BYTE *)(v21 + 1116) = 1; GJBaseGameLayer::rotateAreaObjects(a1, TargetGroupOrigin, TargetGroup, v28, a10); *(_BYTE *)(v21 + 1116) = 0; } } LABEL_20: if ( v32 ) a1->updateObjectSection(a1, (GameObject *)v21); v20 = (cocos2d::CCArray *)((char *)v20 + 1); goto LABEL_23; } } v20 = num; LABEL_8: a1->m_areaRotatedCount += (int)num; a1->m_areaRotatedCountTotal += (int)v20 + (_DWORD)num; }
GD Web Decomp Icon

GD Web Decomp

Raw Source