Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
get
Function · 0.85
set
Function · 0.85
insertElementPrepareDest
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected