Codechange: Un-bitstuff remaining transport infrastructure commands.
This commit is contained in:
@@ -19,7 +19,7 @@ typedef uint32 RoadTypeLabel;
|
||||
*
|
||||
* @note currently only ROADTYPE_ROAD and ROADTYPE_TRAM are supported.
|
||||
*/
|
||||
enum RoadType {
|
||||
enum RoadType : byte {
|
||||
ROADTYPE_BEGIN = 0, ///< Used for iterations
|
||||
ROADTYPE_ROAD = 0, ///< Basic road type
|
||||
ROADTYPE_TRAM = 1, ///< Trams
|
||||
@@ -47,7 +47,7 @@ DECLARE_ENUM_AS_BIT_SET(RoadTypes)
|
||||
* This enumeration defines the possible road parts which
|
||||
* can be build on a tile.
|
||||
*/
|
||||
enum RoadBits {
|
||||
enum RoadBits : byte {
|
||||
ROAD_NONE = 0U, ///< No road-part is build
|
||||
ROAD_NW = 1U, ///< North-west part
|
||||
ROAD_SW = 2U, ///< South-west part
|
||||
@@ -68,4 +68,16 @@ enum RoadBits {
|
||||
DECLARE_ENUM_AS_BIT_SET(RoadBits)
|
||||
template <> struct EnumPropsT<RoadBits> : MakeEnumPropsT<RoadBits, byte, ROAD_NONE, ROAD_END, ROAD_NONE, 4> {};
|
||||
|
||||
/** Which directions are disallowed ? */
|
||||
enum DisallowedRoadDirections : byte {
|
||||
DRD_NONE, ///< None of the directions are disallowed
|
||||
DRD_SOUTHBOUND, ///< All southbound traffic is disallowed
|
||||
DRD_NORTHBOUND, ///< All northbound traffic is disallowed
|
||||
DRD_BOTH, ///< All directions are disallowed
|
||||
DRD_END, ///< Sentinel
|
||||
};
|
||||
DECLARE_ENUM_AS_BIT_SET(DisallowedRoadDirections)
|
||||
/** Helper information for extract tool. */
|
||||
template <> struct EnumPropsT<DisallowedRoadDirections> : MakeEnumPropsT<DisallowedRoadDirections, byte, DRD_NONE, DRD_END, DRD_END, 2> {};
|
||||
|
||||
#endif /* ROAD_TYPE_H */
|
||||
|
Reference in New Issue
Block a user