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

@@ -21,6 +21,7 @@
#include "zoom_type.h"
#include "openttd.h"
#include "rail_gui_type.h"
#include "station_type.h"
/* Used to validate sizes of "max" value in settings. */
const size_t MAX_SLE_UINT8 = UINT8_MAX;
@@ -715,6 +716,7 @@ struct StationSettings {
byte catchment_increase; ///< amount by which station catchment is increased
bool cargo_class_rating_wait_time; ///< station rating tolerance to time since last cargo pickup depends on cargo class
bool station_size_rating_cargo_amount; ///< station rating tolerance to waiting cargo amount depends on station size
StationDelivery station_delivery_mode; ///< method to use for distributing cargo from stations to accepting industries
};
/** Default settings for vehicles. */