85 enum class Flag : uint8_t {
Types related to companies.
Type (helpers) for enums.
constexpr std::underlying_type_t< enum_type > to_underlying(enum_type e)
Implementation of std::to_underlying (from C++23).
#define DECLARE_ENUM_AS_ADDABLE(EnumType)
Operator that allows this enumeration to be added to any other enumeration.
#define DECLARE_INCREMENT_DECREMENT_OPERATORS(enum_type)
For some enums it is useful to have pre/post increment/decrement operators.
Types related to the graphics and/or input devices.
Colours
One of 16 base colours used for companies and windows/widgets.
static const uint8_t LIT_ALL
Show the liveries of all companies.
EnumBitSet< LiveryScheme, uint32_t, LiveryScheme::End > LiverySchemes
Bitset of LiveryScheme elements.
LiveryScheme
List of different livery schemes.
@ PassengerTram
Passenger trams.
@ SmallPlane
Small aeroplanes.
@ PassengerWagonMaglev
Passenger wagons attached to maglev engines.
@ PassengerWagonElectric
Passenger wagons attached to electric engines.
@ PassengerShip
Passenger ships.
@ EMU
EMUs and their passenger wagons.
@ PassengerWagonDiesel
Passenger wagons attached to diesel engines.
@ FreightShip
Freight ships.
@ PassengerWagonMonorail
Passenger wagons attached to monorail engines.
@ Monorail
Monorail engines.
@ FreightTram
Freight trams.
@ PassengerWagonSteam
Passenger wagons attached to steam engines.
@ LargePlane
Large aeroplanes.
@ FreightWagon
Freight wagons.
@ DMU
DMUs and their passenger wagons.
void ResetCompanyLivery(Company *c)
Reset the livery schemes to the company's primary colour.
static const uint8_t LIT_COMPANY
Show the liveries of your own company.
static const uint8_t LIT_NONE
Don't show the liveries at all.
LiveryClass
List of different livery classes, used only by the livery GUI.
@ Other
General livery schemes.
@ GroupAircraft
Aircraft group.
@ Flags
ScriptConfigFlags defining how/when to use this configuration.
Aircraft, helicopters, rotors and their shadows belong to this class.
Information about a particular livery.
Flags in_use
Livery flags.
uint8_t GetRecolourOffset(bool use_secondary=true) const
Get offset for recolour palette.
Colours colour2
Second colour, for vehicles with 2CC support.
Colours colour1
First colour, for all vehicles.
Flag
Flags for bitmask to declare which of the colours are set.
All ships have this type.
@ Electric
Electric model.