src/livery.h
branchcpp_gui
changeset 6298 c30fe89622df
parent 6285 187e3ef04cc9
child 6719 4cc327ad39d5
equal deleted inserted replaced
6297:4bf29d14edba 6298:c30fe89622df
     6 #define LIVERY_H
     6 #define LIVERY_H
     7 
     7 
     8 #include "helpers.hpp"
     8 #include "helpers.hpp"
     9 
     9 
    10 /* List of different livery schemes. */
    10 /* List of different livery schemes. */
    11 typedef enum LiverySchemes {
    11 enum LiveryScheme {
    12 	LS_BEGIN = 0,
    12 	LS_BEGIN = 0,
    13 	LS_DEFAULT = 0,
    13 	LS_DEFAULT = 0,
    14 
    14 
    15 	/* Rail vehicles */
    15 	/* Rail vehicles */
    16 	LS_STEAM,
    16 	LS_STEAM,
    37 	LS_HELICOPTER,
    37 	LS_HELICOPTER,
    38 	LS_SMALL_PLANE,
    38 	LS_SMALL_PLANE,
    39 	LS_LARGE_PLANE,
    39 	LS_LARGE_PLANE,
    40 
    40 
    41 	LS_END
    41 	LS_END
    42 } LiveryScheme;
    42 };
    43 
    43 
    44 DECLARE_POSTFIX_INCREMENT(LiveryScheme);
    44 DECLARE_POSTFIX_INCREMENT(LiveryScheme);
    45 
    45 
    46 /* List of different livery classes, used only by the livery GUI. */
    46 /* List of different livery classes, used only by the livery GUI. */
    47 typedef enum LiveryClasses {
    47 enum LiveryClass {
    48 	LC_OTHER,
    48 	LC_OTHER,
    49 	LC_RAIL,
    49 	LC_RAIL,
    50 	LC_ROAD,
    50 	LC_ROAD,
    51 	LC_SHIP,
    51 	LC_SHIP,
    52 	LC_AIRCRAFT,
    52 	LC_AIRCRAFT,
    53 	LC_END
    53 	LC_END
    54 } LiveryClass;
    54 };
    55 
    55 
    56 
    56 
    57 typedef struct Livery {
    57 struct Livery {
    58 	bool in_use;  ///< Set if this livery should be used instead of the default livery.
    58 	bool in_use;  ///< Set if this livery should be used instead of the default livery.
    59 	byte colour1; ///< First colour, for all vehicles.
    59 	byte colour1; ///< First colour, for all vehicles.
    60 	byte colour2; ///< Second colour, for vehicles with 2CC support.
    60 	byte colour2; ///< Second colour, for vehicles with 2CC support.
    61 } Livery;
    61 };
    62 
    62 
    63 #endif /* LIVERY_H */
    63 #endif /* LIVERY_H */