MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetByTile

Method GetByTile

src/newgrf_object.cpp:69–72  ·  view source on GitHub ↗

* Get the specification associated with a tile. * @param tile The tile to fetch the data for. * @return The specification. */ static */

Source from the content-addressed store, hash-verified

67 * @return The specification.
68 */
69/* static */ const ObjectSpec *ObjectSpec::GetByTile(TileIndex tile)
70{
71 return ObjectSpec::Get(GetObjectType(tile));
72}
73
74/**
75 * Check whether the object might be available at some point in this game with the current game mode.

Callers

nothing calls this directly

Calls 1

GetObjectTypeFunction · 0.85

Tested by

no test coverage detected