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

Function GetEngineGrfFile

src/newgrf_engine.cpp:1057–1061  ·  view source on GitHub ↗

* Get the grf file associated with an engine type. * @param engine_type Engine to query. * @return grf file associated with the engine. */

Source from the content-addressed store, hash-verified

1055 * @return grf file associated with the engine.
1056 */
1057static const GRFFile *GetEngineGrfFile(EngineID engine_type)
1058{
1059 const Engine *e = Engine::Get(engine_type);
1060 return (e != nullptr) ? e->GetGRF() : nullptr;
1061}
1062
1063/**
1064 * Resolver of a vehicle (chain).

Callers 1

VehicleResolverObjectMethod · 0.85

Calls 1

GetGRFMethod · 0.45

Tested by

no test coverage detected