// // cocos2d::CCTMXTiledMap::buildWithMapInfo from 0x1800b1690 to 0x1800b1895 (517 bytes) // // 8 xrefs: // > cocos2d::CCTMXTiledMap::create @ 0x1800b190d // > cocos2d::CCTMXTiledMap::createWithXML @ 0x1800b19c3 // > cocos2d::CCTMXTiledMap::initWithTMXFile @ 0x1800b1a72 // > cocos2d::CCTMXTiledMap::initWithXML @ 0x1800b1add // > @ 0x180149b1c // > @ 0x180149b74 // > @ 0x18014cf68 // > @ 0x1801c25d4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:22:19 +0000 // void __fastcall cocos2d::CCTMXTiledMap::buildWithMapInfo( cocos2d::CCTMXTiledMap *this, struct cocos2d::CCTMXMapInfo *a2) { cocos2d::CCObject *v4; // rcx cocos2d::CCObject *v5; // rax cocos2d::CCObject *v6; // rcx cocos2d::CCObject *v7; // rax cocos2d::CCObject *v8; // rcx cocos2d::CCObject *UserObject; // rax unsigned int v10; // r12d cocos2d::CCArray *v11; // rax cocos2d::CCArray *v12; // rbx unsigned int *v13; // rdi __int64 v14; // rax struct cocos2d::CCTMXLayerInfo **v15; // rdi struct cocos2d::CCTMXLayerInfo **i; // rbp struct cocos2d::CCTMXLayerInfo *v17; // rsi struct cocos2d::CCTMXTilesetInfo *v18; // rax cocos2d::CCTMXLayer *v19; // rax cocos2d::CCTMXLayer *v20; // rbx float *v21; // rbx _DWORD *v22; // rax __int64 v23; // rax float v24; // [rsp+50h] [rbp+8h] BYREF float v25; // [rsp+54h] [rbp+Ch] cocos2d::CCSize::operator=((_DWORD *)this + 80, (_DWORD *)a2 + 17); cocos2d::CCSize::operator=((_DWORD *)this + 82, (_DWORD *)a2 + 19); v4 = *((cocos2d::CCObject **)this + 43); *((_DWORD *)this + 84) = *((_DWORD *)a2 + 16); if ( v4 ) cocos2d::CCObject::release(v4); v5 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)a2 + 104LL))(a2); *((_QWORD *)this + 43) = v5; if ( v5 ) cocos2d::CCObject::retain(v5); v6 = *((cocos2d::CCObject **)this + 44); if ( v6 ) cocos2d::CCObject::release(v6); v7 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)a2 + 120LL))(a2); *((_QWORD *)this + 44) = v7; if ( v7 ) cocos2d::CCObject::retain(v7); v8 = *((cocos2d::CCObject **)this + 45); if ( v8 ) cocos2d::CCObject::release(v8); UserObject = cocos2d::CCNode::getUserObject(a2); *((_QWORD *)this + 45) = UserObject; if ( UserObject ) cocos2d::CCObject::retain(UserObject); v10 = 0; v11 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCTMXMapInfo *))(*(_QWORD *)a2 + 72LL))(a2); v12 = v11; if ( v11 ) { if ( (unsigned int)cocos2d::CCArray::count(v11) ) { v13 = *((unsigned int **)v12 + 7); v14 = *v13; if ( (_DWORD)v14 ) { v15 = *((struct cocos2d::CCTMXLayerInfo ***)v13 + 2); for ( i = &v15[v14 - 1]; v15 <= i; ++v15 ) { v17 = *v15; if ( !*v15 ) break; if ( *((_BYTE *)v17 + 112) ) { v18 = cocos2d::CCTMXTiledMap::tilesetForLayer(this, *v15, a2); v19 = cocos2d::CCTMXLayer::create(v18, v17, a2); *((_BYTE *)v17 + 114) = 0; v20 = v19; cocos2d::CCTMXLayer::setupTiles(v19); (*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, cocos2d::CCTMXLayer *, _QWORD, _QWORD))(*(_QWORD *)this + 448LL))( this, v20, v10, v10); v21 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCTMXLayer *))(*(_QWORD *)v20 + 320LL))(v20); v22 = (_DWORD *)(*(__int64 (__fastcall **)(cocos2d::CCTMXTiledMap *))(*(_QWORD *)this + 320LL))(this); cocos2d::cc_timeval::operator=(&v24, v22); v23 = *(_QWORD *)this; v24 = fmaxf(v24, *v21); v25 = fmaxf(v25, v21[1]); (*(void (__fastcall **)(cocos2d::CCTMXTiledMap *, float *))(v23 + 312))(this, &v24); ++v10; } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source