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

Method Resolve

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

Source from the content-addressed store, hash-verified

204 std::span<const BadgeID> GetBadges(uint index) const override { return HouseSpec::Get(GetHouseType(index))->badges; }
205
206 uint Resolve(uint index, uint var, uint param, bool &avail) const override
207 {
208 TileIndex tile{index};
209 HouseResolverObject ro(GetHouseType(tile), tile, Town::GetByTile(tile));
210 return ro.GetScope(VSG_SCOPE_SELF)->GetVariable(var, param, avail);
211 }
212};
213
214static const NIFeature _nif_house = {

Callers

nothing calls this directly

Calls 3

GetHouseTypeFunction · 0.85
GetVariableMethod · 0.45
GetScopeMethod · 0.45

Tested by

no test coverage detected