// // cocos2d::CCTMXLayer::positionAt from 0xb39024 to 0xb39154 (304 bytes) // // 5 xrefs: // > cocos2d::CCTMXLayer::setupTileSprite @ 0xb39214 // > cocos2d::CCTMXLayer::setupTileSprite @ 0xb39350 // > cocos2d::CCTMXLayer::setupTileSprite @ 0xb39380 // > cocos2d::CCTMXLayer::tileAt @ 0xb39bcc // > @ 0xa89f0 // // 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 // cocos2d::CCPoint cocos2d::CCTMXLayer::positionAt(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2) { cocos2d::CCPoint *v2; // x8 cocos2d::CCPoint *v4; // x19 int m_uIndexInArray; // w0 float x; // s9 cocos2d::CCDirector *v8; // x0 float v9; // s9 float y; // s8 cocos2d::CCDirector *v11; // x0 float ContentScaleFactor; // s0 float v13; // s0 float v14; // s1 cocos2d::CCPoint v17; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint v18; // 0:kr00_8.8 cocos2d::CCPoint v19; // 0:kr08_8.8 cocos2d::CCPoint v20; // 0:kr10_8.8 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = v2; cocos2d::CCPoint::CCPoint(v2, &stru_1247458); m_uIndexInArray = a1[1].m_uIndexInArray; if ( m_uIndexInArray == 1 ) { v20 = cocos2d::CCTMXLayer::positionForHexAt(a1, a2); cocos2d::CCPoint::operator=(v4, v20.x, v20.y, (float *)&v17); } else if ( m_uIndexInArray ) { if ( m_uIndexInArray == 2 ) { v18 = cocos2d::CCTMXLayer::positionForIsoAt(a1, a2); cocos2d::CCPoint::operator=(v4, v18.x, v18.y, (float *)&v17); } } else { v19 = cocos2d::CCTMXLayer::positionForOrthoAt(a1, a2); cocos2d::CCPoint::operator=(v4, v19.x, v19.y, (float *)&v17); } x = v4->x; v8 = cocos2d::CCDirector::sharedDirector(); v9 = x / cocos2d::CCDirector::getContentScaleFactor(v8); y = v4->y; v11 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v11); cocos2d::CCPoint::CCPoint(&v17, v9, y / ContentScaleFactor); cocos2d::CCPoint::operator=(v4, v13, v14, (float *)&v17); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source