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

Method IsInspectable

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

Source from the content-addressed store, hash-verified

697
698class NIHRoadStop : public NIHelper {
699 bool IsInspectable(uint index) const override { return GetRoadStopSpec(TileIndex{index}) != nullptr; }
700 uint GetParent(uint index) const override { return GetInspectWindowNumber(GSF_FAKE_TOWNS, BaseStation::GetByTile(TileIndex{index})->town->index); }
701 const void *GetInstance(uint)const override { return nullptr; }
702 const void *GetSpec(uint index) const override { return GetRoadStopSpec(TileIndex{index}); }

Callers 2

GetGRFIDMethod · 0.95
GetBadgesMethod · 0.95

Calls 1

GetRoadStopSpecFunction · 0.85

Tested by

no test coverage detected