// // LevelEditorLayer::addObjectsInRect from 0x461058 to 0x461106 (174 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:52 +0000 // unsigned int __fastcall LevelEditorLayer::addObjectsInRect( float **a1, cocos2d::CCRect *a2, int a3, cocos2d::CCArray *a4, cocos2d::CCArray *a5) { _BYTE *v6; // r7 float **v7; // r8 unsigned int i; // r6 unsigned int result; // r0 GameObject *v11; // r0 cocos2d::CCObject *v12; // r5 _BYTE v15[16]; // [sp+1Ch] [bp-18h] BYREF v6 = (char *)a1 + 11853; v7 = a1 + 2958; for ( i = 0; ; ++i ) { result = cocos2d::CCArray::count(a4); if ( i >= result ) break; v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(a4, i); v12 = v11; if ( a3 || LevelEditorLayer::validGroup((LevelEditorLayer *)a1, v11, 1) ) { if ( (LevelEditorLayer::getObjectRect((LevelEditorLayer *)v15, (GameObject *)a1, v12, 0, 0), !*v6) && cocos2d::CCRect::intersectsRect(a2, (const cocos2d::CCRect *)v15) || *v6 && OBB2D::overlaps(*v7, a1[372]) ) { cocos2d::CCArray::addObject(a5, v12); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source