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

Method GetFeature

src/newgrf_roadtype.cpp:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110GrfSpecFeature RoadTypeResolverObject::GetFeature() const
111{
112 RoadType rt = GetRoadTypeByLabel(this->roadtype_scope.rti->label, false);
113 switch (GetRoadTramType(rt)) {
114 case RTT_ROAD: return GSF_ROADTYPES;
115 case RTT_TRAM: return GSF_TRAMTYPES;
116 default: return GSF_INVALID;
117 }
118}
119
120uint32_t RoadTypeResolverObject::GetDebugID() const
121{

Callers

nothing calls this directly

Calls 2

GetRoadTypeByLabelFunction · 0.85
GetRoadTramTypeFunction · 0.85

Tested by

no test coverage detected