// // GJSmartTemplate::offsetForType from 0x1403b9b30 to 0x1403b9c1b (235 bytes) // // 8 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x1401b5a17 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401b69b9 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6b31 // > EditorUI::createPrefab @ 0x1401b7530 // > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc516 // > GJSmartBlockPreview::addTemplateGuide_1 @ 0x1403bc8f9 // > GJSmartBlockPreview::addPreview @ 0x1403bcc36 // > @ 0x140923d80 // // 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:31:26 +0000 // cocos2d::CCPoint *__fastcall GJSmartTemplate::offsetForType(cocos2d::CCPoint *a1, int a2) { cocos2d::CCPoint *result; // rax switch ( a2 ) { case '6': case '9': case 'A': case 'D': cocos2d::CCPoint::CCPoint(a1, 15.0, 0.0); result = a1; break; case '7': case '8': case 'B': case 'C': cocos2d::CCPoint::CCPoint(a1, -15.0, 0.0); result = a1; break; case 'E': case 'G': case 'J': case 'L': cocos2d::CCPoint::CCPoint(a1, 0.0, -15.0); result = a1; break; case 'F': case 'H': case 'I': case 'K': cocos2d::CCPoint::CCPoint(a1, 0.0, 15.0); result = a1; break; default: cocos2d::CCPoint::CCPoint(a1, (const struct cocos2d::CCPoint *)&unk_14090AD10); result = a1; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source