//
// GJSmartTemplate::offsetForType from 0xb0c43c to 0xb0c51c (224 bytes)
//
// 7 xrefs:
// > EditorUI::createPrefab @ 0x7c9cb8
// > EditorUI::addObjectsToSmartTemplate @ 0x7cbdc4
// > GJSmartTemplate::offsetForObject @ 0xb0c9c0
// > GJSmartBlockPreview::addPreview @ 0xb0d7fc
// > GJSmartBlockPreview::addTemplateGuide @ 0xb0fc04
// > GJSmartBlockPreview::addTemplateGuide @ 0xb0fd74
// > ??> @ 0xbba80
//
// This function is hookable on this platform (idp: arm, 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 13:01:26 +0000
//
cocos2d::CCPoint *__usercall GJSmartTemplate::offsetForType@(int a1@, cocos2d::CCPoint *a2@)
{
cocos2d::CCPoint *result; // x0
switch ( a1 )
{
case '6':
case '9':
case 'A':
case 'D':
cocos2d::CCPoint::CCPoint(a2, 15.0, 0.0);
result = a2;
break;
case '7':
case '8':
case 'B':
case 'C':
cocos2d::CCPoint::CCPoint(a2, -15.0, 0.0);
result = a2;
break;
case 'E':
case 'G':
case 'J':
case 'L':
cocos2d::CCPoint::CCPoint(a2, 0.0, -15.0);
result = a2;
break;
case 'F':
case 'H':
case 'I':
case 'K':
cocos2d::CCPoint::CCPoint(a2, 0.0, 15.0);
result = a2;
break;
default:
cocos2d::CCPoint::CCPoint(a2, (const cocos2d::CCPoint *)&unk_155E0E0);
result = a2;
break;
}
return result;
}