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

Method Resolve

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

Source from the content-addressed store, hash-verified

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
708 {
709 TileIndex tile{index};
710 StationGfx view = GetStationGfx(tile);
711 RoadStopResolverObject ro(GetRoadStopSpec(tile), BaseStation::GetByTile(tile), tile, INVALID_ROADTYPE, GetStationType(tile), view);
712 return ro.GetScope(VSG_SCOPE_SELF)->GetVariable(var, param, avail);
713 }
714};
715
716static const NIFeature _nif_roadstop = {

Callers

nothing calls this directly

Calls 5

GetStationGfxFunction · 0.85
GetRoadStopSpecFunction · 0.85
GetStationTypeFunction · 0.85
GetVariableMethod · 0.45
GetScopeMethod · 0.45

Tested by

no test coverage detected