Add station cargo history

This commit is contained in:
Andreas Schmitt
2021-06-23 08:21:29 +02:00
parent f3b39b12a8
commit 9b1783809d
13 changed files with 352 additions and 1 deletions

View File

@@ -808,6 +808,8 @@ public:
IndustryList industries_near; ///< Cached list of industries near the station that can accept cargo, @see DeliverGoodsToIndustry()
Industry *industry; ///< NOSAVE: Associated industry for neutral stations. (Rebuilt on load from Industry->st)
uint8 station_cargo_history[NUM_CARGO * MAX_STATION_CARGO_HISTORY_DAYS]; ///< Station history of waiting cargo.
Station(TileIndex tile = INVALID_TILE);
~Station();
@@ -817,6 +819,8 @@ public:
void UpdateVirtCoord() override;
void UpdateCargoHistory();
void MoveSign(TileIndex new_xy) override;
void AfterStationTileSetChange(bool adding, StationType type);