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

Method Resolve

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

Source from the content-addressed store, hash-verified

428 std::span<const BadgeID> GetBadges(uint index) const override { return ObjectSpec::GetByTile(TileIndex{index})->badges; }
429
430 uint Resolve(uint index, uint var, uint param, bool &avail) const override
431 {
432 TileIndex tile{index};
433 ObjectResolverObject ro(ObjectSpec::GetByTile(tile), Object::GetByTile(tile), tile);
434 return ro.GetScope(VSG_SCOPE_SELF)->GetVariable(var, param, avail);
435 }
436};
437
438static const NIFeature _nif_object = {

Callers

nothing calls this directly

Calls 2

GetVariableMethod · 0.45
GetScopeMethod · 0.45

Tested by

no test coverage detected