equal
deleted
inserted
replaced
3 /** @file livery.h */ |
3 /** @file livery.h */ |
4 |
4 |
5 #ifndef LIVERY_H |
5 #ifndef LIVERY_H |
6 #define LIVERY_H |
6 #define LIVERY_H |
7 |
7 |
|
8 #include "player_type.h" |
8 |
9 |
9 /* List of different livery schemes. */ |
10 /* List of different livery schemes. */ |
10 enum LiveryScheme { |
11 enum LiveryScheme { |
11 LS_BEGIN = 0, |
12 LS_BEGIN = 0, |
12 LS_DEFAULT = 0, |
13 LS_DEFAULT = 0, |
61 bool in_use; ///< Set if this livery should be used instead of the default livery. |
62 bool in_use; ///< Set if this livery should be used instead of the default livery. |
62 byte colour1; ///< First colour, for all vehicles. |
63 byte colour1; ///< First colour, for all vehicles. |
63 byte colour2; ///< Second colour, for vehicles with 2CC support. |
64 byte colour2; ///< Second colour, for vehicles with 2CC support. |
64 }; |
65 }; |
65 |
66 |
|
67 /** |
|
68 * Reset the livery schemes to the player's primary colour. |
|
69 * This is used on loading games without livery information and on new player start up. |
|
70 * @param p Player to reset. |
|
71 */ |
|
72 void ResetPlayerLivery(Player *p); |
|
73 |
66 #endif /* LIVERY_H */ |
74 #endif /* LIVERY_H */ |