MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getTileIndex

Function getTileIndex

src/OpenLoco/src/Map/TileManager.cpp:196–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 static constexpr size_t getTileIndex(const TilePos2& pos)
197 {
198 // This is the same as (y * kMapPitch) + x
199 return (pos.y << 9) | pos.x;
200 }
201
202 Tile get(TilePos2 pos)
203 {

Callers 3

getFunction · 0.85
setFunction · 0.85
insertElementPrepareDestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected