src/openttd.h
changeset 8759 eae56497cf83
parent 8750 fdd6054e7bae
child 8760 ce0891c412ce
equal deleted inserted replaced
8758:91a623686e07 8759:eae56497cf83
     6 
     6 
     7 #ifndef VARDEF
     7 #ifndef VARDEF
     8 #define VARDEF extern
     8 #define VARDEF extern
     9 #endif
     9 #endif
    10 
    10 
    11 #include "core/enum_type.hpp"
       
    12 #include "strings_type.h"
    11 #include "strings_type.h"
    13 
    12 
    14 // Forward declarations of structs.
    13 // Forward declarations of structs.
    15 struct Depot;
    14 struct Depot;
    16 struct Waypoint;
    15 struct Waypoint;
    92 	TRANSPORT_ROAD = 1,
    91 	TRANSPORT_ROAD = 1,
    93 	TRANSPORT_WATER, // = 2
    92 	TRANSPORT_WATER, // = 2
    94 	TRANSPORT_END,
    93 	TRANSPORT_END,
    95 	INVALID_TRANSPORT = 0xff,
    94 	INVALID_TRANSPORT = 0xff,
    96 };
    95 };
    97 
       
    98 /** Define basic enum properties */
       
    99 template <> struct EnumPropsT<TransportType> : MakeEnumPropsT<TransportType, byte, TRANSPORT_BEGIN, TRANSPORT_END, INVALID_TRANSPORT> {};
       
   100 typedef TinyEnumT<TransportType> TransportTypeByte;
       
   101 
    96 
   102 /* Display Options */
    97 /* Display Options */
   103 enum {
    98 enum {
   104 	DO_SHOW_TOWN_NAMES    = 0,
    99 	DO_SHOW_TOWN_NAMES    = 0,
   105 	DO_SHOW_STATION_NAMES = 1,
   100 	DO_SHOW_STATION_NAMES = 1,