// // LevelEditorLayer::addObjectsInRect from 0x366524 to 0x3665d2 (174 bytes) // // 0 xrefs: // // 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 LevelEditorLayer::addObjectsInRect( LevelEditorLayer *a1, cocos2d::CCRect a2, bool a3, cocos2d::CCArray *a4, cocos2d::CCArray *a5) { float width; // r10 bool *p_m_nonSquareRotation; // r7 OBB2D **p_m_currentOBB2D; // r8 unsigned int i; // r6 GameObject *v10; // r0 GameObject *v11; // r5 cocos2d::CCRect v12; // [sp+1Ch] [bp-18h] BYREF cocos2d::CCPoint origin; // 0:^C.8 width = a2.size.width; origin = a2.origin; p_m_nonSquareRotation = &a1->m_nonSquareRotation; p_m_currentOBB2D = &a1->m_currentOBB2D; for ( i = 0; i < cocos2d::CCArray::count((cocos2d::CCArray *)LODWORD(width)); ++i ) { v10 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)LODWORD(width), i); v11 = v10; if ( LODWORD(origin.y) || LevelEditorLayer::validGroup(a1, v10, 1) ) { if ( (LevelEditorLayer::getObjectRect(&v12, a1, v11, 0, 0), !*p_m_nonSquareRotation) && cocos2d::CCRect::intersectsRect((cocos2d::CCRect *)LODWORD(origin.x), &v12) || *p_m_nonSquareRotation && OBB2D::overlaps(*p_m_currentOBB2D) ) { cocos2d::CCArray::addObject((cocos2d::CCArray *)LODWORD(a2.size.height), v11); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source