// // LevelEditorLayer::addObjectsAtPosition from 0x366478 to 0x36651e (166 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::addObjectsAtPosition( LevelEditorLayer *a1, cocos2d::CCPoint a2, cocos2d::CCArray *a3, cocos2d::CCArray *a4) { float y; // r10 bool *p_m_nonSquareRotation; // r7 OBB2D **p_m_currentOBB2D; // r8 float x; // r11 unsigned int i; // r6 GameObject *v11; // r5 cocos2d::CCRect v12; // [sp+14h] [bp-18h] BYREF y = a2.y; p_m_nonSquareRotation = &a1->m_nonSquareRotation; p_m_currentOBB2D = &a1->m_currentOBB2D; x = a2.x; for ( i = 0; i < cocos2d::CCArray::count((cocos2d::CCArray *)LODWORD(y)); ++i ) { v11 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)LODWORD(y), i); if ( LevelEditorLayer::validGroup(a1, v11, 1) ) { if ( (LevelEditorLayer::getObjectRect(&v12, a1, v11, 0, 0), !*p_m_nonSquareRotation) && cocos2d::CCRect::containsPoint(&v12, (const cocos2d::CCPoint *)LODWORD(x)) || *p_m_nonSquareRotation && OBB2D::overlaps(*p_m_currentOBB2D) ) { cocos2d::CCArray::addObject(a3, v11); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source