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

Method Resolve

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

Source from the content-addressed store, hash-verified

139 std::span<const BadgeID> GetBadges(uint index) const override { return this->IsInspectable(index) ? GetStationSpec(TileIndex{index})->badges : std::span<const BadgeID>{}; }
140
141 uint Resolve(uint index, uint var, uint param, bool &avail) const override
142 {
143 TileIndex tile{index};
144 StationResolverObject ro(GetStationSpec(tile), Station::GetByTile(tile), tile);
145 return ro.GetScope(VSG_SCOPE_SELF)->GetVariable(var, param, avail);
146 }
147};
148
149static const NIFeature _nif_station = {

Callers

nothing calls this directly

Calls 3

GetStationSpecFunction · 0.85
GetVariableMethod · 0.45
GetScopeMethod · 0.45

Tested by

no test coverage detected