Codechange: Use EnumBitSet for StationFacility.
This commit is contained in:
committed by
Peter Nelson
parent
8d38308ebb
commit
75387b9e2b
@@ -43,12 +43,12 @@ public:
|
||||
* Type of stations known in the game.
|
||||
*/
|
||||
enum StationType {
|
||||
/* Note: these values represent part of the in-game StationFacility enum */
|
||||
STATION_TRAIN = (int)::FACIL_TRAIN, ///< Train station
|
||||
STATION_TRUCK_STOP = (int)::FACIL_TRUCK_STOP, ///< Truck station
|
||||
STATION_BUS_STOP = (int)::FACIL_BUS_STOP, ///< Bus station
|
||||
STATION_AIRPORT = (int)::FACIL_AIRPORT, ///< Airport
|
||||
STATION_DOCK = (int)::FACIL_DOCK, ///< Dock
|
||||
/* Note: these values represent part of the in-game StationFacilities enum */
|
||||
STATION_TRAIN = (1 << to_underlying(::StationFacility::Train)), ///< Train station
|
||||
STATION_TRUCK_STOP = (1 << to_underlying(::StationFacility::TruckStop)), ///< Truck station
|
||||
STATION_BUS_STOP = (1 << to_underlying(::StationFacility::BusStop)), ///< Bus station
|
||||
STATION_AIRPORT = (1 << to_underlying(::StationFacility::Airport)), ///< Airport
|
||||
STATION_DOCK = (1 << to_underlying(::StationFacility::Dock)), ///< Dock
|
||||
STATION_ANY = STATION_TRAIN | STATION_TRUCK_STOP | STATION_BUS_STOP | STATION_AIRPORT | STATION_DOCK, ///< All station types
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user