// // GJBaseGameLayer::processAreaTransformGroupAction from 0x140229220 to 0x14022971d (1277 bytes) // // 4 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x140228e2f // > @ 0x140680548 // > @ 0x140680598 // > @ 0x1406cd9d4 // // 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::processAreaTransformGroupAction( GJBaseGameLayer *a1, cocos2d::CCArray *a2, EnterEffectInstance *a3, cocos2d::CCPoint a4, int a5, int a6, int a7, int a8, int a9, bool a10, bool a11) { int v14; // r15d unsigned int v15; // edx cocos2d::ccArray *data; // r14 __int64 num; // rax GameObject **arr; // r14 GameObject **v19; // rbx int v20; // r12d GameObject *v21; // rdi int m_outerSectionIndex; // eax int m_middleSectionIndex; // eax bool v24; // r13 GameObject *v25; // rdx float AreaObjectValue; // xmm0_4 __int64 m_varianceIndex; // rcx float v28; // xmm7_4 float v29; // xmm6_4 float v30; // xmm10_4 float v31; // xmm9_4 float v32; // xmm1_4 __int64 m_uniqueID; // rbx cocos2d::CCDictionary *v34; // rax cocos2d::CCArray *v35; // r15 __int64 v36; // rbx cocos2d::CCDictionary *v37; // rax GameObject *v38; // rbx unsigned int v39; // eax float m_scaleX; // xmm2_4 float m_scaleY; // xmm3_4 float v42; // xmm7_4 float v43; // xmm6_4 bool v44; // zf float v45; // xmm0_4 float v46; // xmm1_4 float v47; // xmm0_4 float v48; // xmm1_4 cocos2d::CCLayer *m_objectLayer; // rcx int v50; // [rsp+30h] [rbp-D8h] GameObject **v51; // [rsp+38h] [rbp-D0h] cocos2d::CCPoint v52[2]; // [rsp+40h] [rbp-C8h] BYREF bool v53; // [rsp+110h] [rbp+8h] BYREF unsigned int v54; // [rsp+118h] [rbp+10h] cocos2d::CCPoint *v55; // [rsp+128h] [rbp+20h] v55 = (cocos2d::CCPoint *)a4; a1->m_objectLayer->getScaleX(a1->m_objectLayer); a1->m_objectLayer->getScaleY(a1->m_objectLayer); a1->m_objectLayer->getPosition_0(a1->m_objectLayer); cocos2d::CCPoint::CCPoint(v52); ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->setScale_0)(a1->m_objectLayer); a1->m_objectLayer->setPosition_0(a1->m_objectLayer, (const cocos2d::CCPoint *)&dword_1406C1D28); a1->m_areaScaledCount += cocos2d::CCArray::count(a2); v14 = 0; v15 = 0; v54 = 0; if ( a2 ) { data = a2->data; num = data->num; if ( (_DWORD)num ) { arr = (GameObject **)data->arr; v19 = &arr[num - 1]; v51 = v19; if ( arr <= v19 ) { v20 = a9 - 1; do { v21 = *arr; if ( !*arr ) break; ++v20; if ( !v21->m_isActivated ) { m_outerSectionIndex = v21->m_outerSectionIndex; if ( m_outerSectionIndex > a6 ) continue; if ( m_outerSectionIndex < a5 ) continue; m_middleSectionIndex = v21->m_middleSectionIndex; if ( m_middleSectionIndex > a8 || m_middleSectionIndex < a7 ) continue; } v24 = GJBaseGameLayer::resetAreaObjectValues(a1, *arr, 1); v53 = 0; AreaObjectValue = GJBaseGameLayer::getAreaObjectValue(a1, a3, v21, v55, &v53); if ( AreaObjectValue < 1.0 ) { m_varianceIndex = v21->m_varianceIndex; v50 = ++v14; v28 = 1.0; v29 = 1.0; v30 = (float)(a1->m_varianceValues._Elems[m_varianceIndex + 12] * a3->m_scaleXVariance) + a3->m_scaleX; v31 = (float)(a1->m_varianceValues._Elems[m_varianceIndex + 13] * a3->m_scaleYVariance) + a3->m_scaleY; if ( v30 != 0.0 || v31 != 0.0 ) { v32 = 1.0 - GJBaseGameLayer::getEasedAreaValue(a1, v25, a3, AreaObjectValue, v53, v20); v28 = (float)((float)(v30 - 1.0) * v32) + 1.0; v29 = (float)((float)(v31 - 1.0) * v32) + 1.0; } if ( a10 ) { m_uniqueID = v21->m_uniqueID; v34 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex( a1->m_targetGroupsArray, a3->m_targetGroupIndex + 1); v35 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v34, m_uniqueID); v36 = v21->m_uniqueID; v37 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex( a1->m_targetGroupsArray, a3->m_targetGroupIndex + 2); v38 = (GameObject *)cocos2d::CCDictionary::objectForKey(v37, v36); v39 = cocos2d::CCArray::count(v35); v54 = v39 + v54 - 1; if ( a3->m_gameObject->m_dontEditAreaParent ) v21->m_unk508 = 1; GJBaseGameLayer::transformAreaObjects(a1, v38, v35, v28, v29, a11); v19 = v51; v14 = v50; v21->m_unk508 = 0; } else { m_scaleX = v21->m_scaleX; m_scaleY = v21->m_scaleY; v42 = (float)(v28 - 1.0) * m_scaleX; v43 = (float)(v29 - 1.0) * m_scaleY; if ( v42 != 0.0 || v43 != 0.0 ) { v44 = !a11; v21->m_isDirty = 1; v45 = v42 + v21->m_scaleXOffset; v21->m_isObjectRectDirty = 1; v46 = v42 + v21->m_unk2BC; v21->m_scaleX = m_scaleX + v42; v21->m_scaleXOffset = v45; v47 = v43 + v21->m_scaleYOffset; v21->m_unk2BC = v46; v48 = v43 + v21->m_unk2C0; v21->m_scaleY = m_scaleY + v43; v21->m_scaleYOffset = v47; v21->m_unk2C0 = v48; if ( !v44 ) ((void (__fastcall *)(GameObject *))v21->setRScale)(v21); } } } if ( v24 ) a1->updateObjectSection(a1, v21); ++arr; } while ( arr <= v19 ); v15 = v54; } } } m_objectLayer = a1->m_objectLayer; a1->m_areaScaledCount += v15; a1->m_areaScaledCountTotal += v15 + v14; ((void (__fastcall *)(cocos2d::CCLayer *))m_objectLayer->setScaleX)(m_objectLayer); ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->setScaleY)(a1->m_objectLayer); a1->m_objectLayer->setPosition_0(a1->m_objectLayer, v52); }
GD Web Decomp Icon

GD Web Decomp

Raw Source