// // GJSmartTemplate::offsetForType from 0x66ea68 to 0x66eab4 (76 bytes) // // 6 xrefs: // > EditorUI::createPrefab @ 0x4870e2 // > EditorUI::addObjectsToSmartTemplate @ 0x4883fe // > GJSmartTemplate::offsetForObject @ 0x66eda4 // > GJSmartBlockPreview::addPreview @ 0x66f656 // > GJSmartBlockPreview::addTemplateGuide @ 0x6705fc // > GJSmartBlockPreview::addTemplateGuide @ 0x6706f0 // // 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:55:49 +0000 // cocos2d::CCPoint *__fastcall GJSmartTemplate::offsetForType(cocos2d::CCPoint *a1, int a2) { float v3; // r1 float v4; // r2 switch ( a2 ) { case '6': case '9': case 'A': case 'D': v3 = 15.0; goto LABEL_4; case '7': case '8': case 'B': case 'C': v3 = -15.0; LABEL_4: v4 = 0.0; goto LABEL_7; case 'E': case 'G': case 'J': case 'L': v3 = 0.0; v4 = -15.0; goto LABEL_7; case 'F': case 'H': case 'I': case 'K': v4 = 15.0; v3 = 0.0; LABEL_7: cocos2d::CCPoint::CCPoint(a1, v3, v4); break; default: cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)&unk_D2D218); break; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source