MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ScreenGetMapXYSideWithZ

Function ScreenGetMapXYSideWithZ

src/openrct2/interface/Viewport.cpp:1914–1922  ·  view source on GitHub ↗

* * rct2: 0x006896DC */

Source from the content-addressed store, hash-verified

1912 * rct2: 0x006896DC
1913 */
1914 std::optional<CoordsXY> ScreenGetMapXYSideWithZ(const ScreenCoordsXY& screenCoords, int32_t z, uint8_t* side)
1915 {
1916 auto mapCoords = ScreenGetMapXYWithZ(screenCoords, z);
1917 if (!mapCoords.has_value())
1918 return std::nullopt;
1919
1920 *side = MapGetTileSide(*mapCoords);
1921 return mapCoords->ToTileStart();
1922 }
1923
1924 ScreenCoordsXY Translate3DTo2DWithZ(int32_t rotation, const CoordsXYZ& pos)
1925 {

Callers 1

updatePlacementWallMethod · 0.85

Calls 3

ScreenGetMapXYWithZFunction · 0.85
MapGetTileSideFunction · 0.85
ToTileStartMethod · 0.45

Tested by

no test coverage detected