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

Method GetGRFID

src/table/newgrf_debug_data.h:704–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702 const void *GetSpec(uint index) const override { return GetRoadStopSpec(TileIndex{index}); }
703 std::string GetName(uint index) const override { return GetString(STR_NEWGRF_INSPECT_CAPTION_OBJECT_AT, STR_STATION_NAME, GetStationIndex(index), index); }
704 uint32_t GetGRFID(uint index) const override { return (this->IsInspectable(index)) ? GetRoadStopSpec(TileIndex{index})->grf_prop.grfid : 0; }
705 std::span<const BadgeID> GetBadges(uint index) const override { return this->IsInspectable(index) ? GetRoadStopSpec(TileIndex{index})->badges : std::span<const BadgeID>{}; }
706
707 uint Resolve(uint index, uint var, uint32_t param, bool &avail) const override

Callers

nothing calls this directly

Calls 2

IsInspectableMethod · 0.95
GetRoadStopSpecFunction · 0.85

Tested by

no test coverage detected