// // GJSmartTemplate::offsetForDir from 0x9d1224 to 0x9d1390 (364 bytes) // // 19 xrefs: // > EditorUI::getSmartNeighbor @ 0x68a060 // > EditorUI::getNeighbor @ 0x68a198 // > EditorUI::addObjectsToSmartTemplate @ 0x6b4330 // > EditorUI::addObjectsToSmartTemplate @ 0x6b4368 // > EditorUI::addObjectsToSmartTemplate @ 0x6b45dc // > EditorUI::addObjectsToSmartTemplate @ 0x6b465c // > EditorUI::addObjectsToSmartTemplate @ 0x6b46a8 // > EditorUI::addObjectsToSmartTemplate @ 0x6b4790 // > EditorUI::addObjectsToSmartTemplate @ 0x6b47dc // > EditorUI::addObjectsToSmartTemplate @ 0x6b48a0 // > GJSmartTemplate::keyFromNeighbors @ 0x9d4484 // > GJSmartTemplate::keyFromNeighbors @ 0x9d44e4 // > GJSmartTemplate::keyFromNeighbors @ 0x9d4530 // > GJSmartTemplate::keyFromNeighbors @ 0x9d4580 // > GJSmartTemplate::keyFromNeighbors @ 0x9d45d0 // > GJSmartTemplate::keyFromNeighbors @ 0x9d460c // > GJSmartTemplate::keyFromNeighbors @ 0x9d4644 // > GJSmartTemplate::keyFromNeighbors @ 0x9d467c // > @ 0x5f9d0 // // 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::offsetForDir(GJSmartDirection a1, int a2) { cocos2d::CCPoint *v2; // x8 cocos2d::CCPoint *v3; // x20 ObjectToolbox *v5; // x0 float v6; // s0 float v7; // s1 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v3 = v2; v5 = ObjectToolbox::sharedState(); v6 = ObjectToolbox::gridNodeSizeForKey(v5, a2); v7 = 15.0; if ( v6 != 15.0 ) v7 = 30.0; switch ( a1 ) { case 1: cocos2d::CCPoint::CCPoint(v3, 0.0, v7); break; case 2: cocos2d::CCPoint::CCPoint(v3, 0.0, -v7); break; case 3: cocos2d::CCPoint::CCPoint(v3, -v7, 0.0); break; case 4: cocos2d::CCPoint::CCPoint(v3, v7, 0.0); break; case 5: cocos2d::CCPoint::CCPoint(v3, -v7, v7); break; case 6: cocos2d::CCPoint::CCPoint(v3, v7, v7); break; case 7: cocos2d::CCPoint::CCPoint(v3, -v7, -v7); break; case 8: cocos2d::CCPoint::CCPoint(v3, v7, -v7); break; default: cocos2d::CCPoint::CCPoint(v3, 0.0, 0.0); break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source