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

Function GetEnginePalette

src/vehicle.cpp:2123–2126  ·  view source on GitHub ↗

* Get the colour map for an engine. This used for unbuilt engines in the user interface. * @param engine_type ID of engine * @param company ID of company * @return A ready-to-use palette modifier */

Source from the content-addressed store, hash-verified

2121 * @return A ready-to-use palette modifier
2122 */
2123PaletteID GetEnginePalette(EngineID engine_type, CompanyID company)
2124{
2125 return GetEngineColourMap(engine_type, company, EngineID::Invalid(), nullptr);
2126}
2127
2128/**
2129 * Get the colour map for a vehicle.

Callers 3

DrawWidgetMethod · 0.85
DrawWidgetMethod · 0.85
DrawEngineListFunction · 0.85

Calls 2

GetEngineColourMapFunction · 0.85
InvalidFunction · 0.85

Tested by

no test coverage detected