Add: Cargo delivery distribution modes

This commit is contained in:
Yourself
2022-01-02 20:05:57 -07:00
committed by Jonathan G Rennison
parent 2c3b502441
commit e4fa9f8465
6 changed files with 150 additions and 23 deletions

View File

@@ -87,6 +87,11 @@ enum CatchmentArea {
MAX_CATCHMENT = 10, ///< Maximum catchment for airports with "modified catchment" enabled
};
enum StationDelivery : byte {
SD_NEAREST_FIRST = 0, ///< Station delivers cargo only to the nearest accepting industry
SD_BALANCED = 1 ///< Station delivers cargo equally among accepting industries
};
static const uint MAX_LENGTH_STATION_NAME_CHARS = 128; ///< The maximum length of a station name in characters including '\0'
struct StationCompare {