2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file livery.h Functions/types related to livery colours. */
13 #include "company_type.h"
15 static const byte LIT_NONE
= 0; ///< Don't show the liveries at all
16 static const byte LIT_COMPANY
= 1; ///< Show the liveries of your own company
17 static const byte LIT_ALL
= 2; ///< Show the liveries of all companies
19 /** List of different livery schemes. */
32 LS_PASSENGER_WAGON_STEAM
,
33 LS_PASSENGER_WAGON_DIESEL
,
34 LS_PASSENGER_WAGON_ELECTRIC
,
35 LS_PASSENGER_WAGON_MONORAIL
,
36 LS_PASSENGER_WAGON_MAGLEV
,
52 /* Trams (appear on Road Vehicles tab) */
59 DECLARE_POSTFIX_INCREMENT(LiveryScheme
)
60 /** Helper information for extract tool. */
61 template <> struct EnumPropsT
<LiveryScheme
> : MakeEnumPropsT
<LiveryScheme
, byte
, LS_BEGIN
, LS_END
, LS_END
, 8> {};
63 /** List of different livery classes, used only by the livery GUI. */
77 /** Information about a particular livery. */
79 byte in_use
; ///< Bit 0 set if this livery should override the default livery first colour, Bit 1 for the second colour.
80 byte colour1
; ///< First colour, for all vehicles.
81 byte colour2
; ///< Second colour, for vehicles with 2CC support.
84 void ResetCompanyLivery(Company
*c
);