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

Function get

src/OpenLoco/src/Map/TileManager.cpp:202–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 Tile get(TilePos2 pos)
203 {
204 const auto index = getTileIndex(pos);
205 if (index >= _tiles.size())
206 {
207 Logging::error("Attempted to get tile out of bounds! ({0}, {1})", pos.x, pos.y);
208 return Tile(pos, nullptr);
209 }
210
211 auto data = _tiles[index];
212 return Tile(pos, data);
213 }
214
215 Tile get(Pos2 pos)
216 {

Callers 15

industryMethod · 0.70
applyToMultiTileFunction · 0.70
updateMethod · 0.70
updateIndustryAnimation1Function · 0.70
updateIndustryAnimation2Function · 0.70
updateStationAnimationFunction · 0.70
applyToMultiTileFunction · 0.70
updateMethod · 0.70
updateBuildingAnimation1Function · 0.70
updateBuildingAnimation2Function · 0.70
getWallElementFunction · 0.70

Calls 4

getTileIndexFunction · 0.85
errorFunction · 0.85
TileClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected