// // GJSmartTemplate::offsetForType from 0x9d1390 to 0x9d1470 (224 bytes) // // 7 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x6b3cdc // > EditorUI::createPrefab @ 0x6c0728 // > GJSmartTemplate::offsetForObject @ 0x9d1914 // > GJSmartBlockPreview::addPreview @ 0x9d61d4 // > GJSmartBlockPreview::addTemplateGuide @ 0x9d68c4 // > GJSmartBlockPreview::addTemplateGuide @ 0x9d6a24 // > @ 0x8dbd0 // // 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 GJSmartTemplate::offsetForType(SmartBlockType a1) { cocos2d::CCPoint *v1; // x8 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 switch ( a1 ) { case WideSlope1: case WideSlope4: case WideSlope5: case WideSlope8: cocos2d::CCPoint::CCPoint(v1, 15.0, 0.0); break; case WideSlope2: case WideSlope3: case WideSlope6: case WideSlope7: cocos2d::CCPoint::CCPoint(v1, -15.0, 0.0); break; case WideSlope9: case WideSlope11: case WideSlope14: case WideSlope16: cocos2d::CCPoint::CCPoint(v1, 0.0, -15.0); break; case WideSlope10: case WideSlope12: case WideSlope13: case WideSlope15: cocos2d::CCPoint::CCPoint(v1, 0.0, 15.0); break; default: cocos2d::CCPoint::CCPoint(v1, &stru_1243E08); break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source