OpenTTD Source 20261129-master-g72a8bdc861
GoodsEntry::CargoHistoryData Struct Reference

Storage for station cargo history. More...

#include <station_base.h>

Data Fields

HistoryData< CargoHistory > history {}
 Historical cargo data.
uint32_t accumulated_waiting = 0
 Accumulated waiting over the last period.
uint32_t supply = 0
 Cargo supplied over the last period.
uint32_t lost = 0
 Cargo lost over the last period.
uint32_t accepted = 0
 Cargo accepted over the last period.

Detailed Description

Storage for station cargo history.

Definition at line 235 of file station_base.h.

Field Documentation

◆ accepted

uint32_t GoodsEntry::CargoHistoryData::accepted = 0

Cargo accepted over the last period.

Definition at line 241 of file station_base.h.

◆ accumulated_waiting

uint32_t GoodsEntry::CargoHistoryData::accumulated_waiting = 0

Accumulated waiting over the last period.

Definition at line 238 of file station_base.h.

◆ history

HistoryData<CargoHistory> GoodsEntry::CargoHistoryData::history {}

Historical cargo data.

Definition at line 236 of file station_base.h.

Referenced by SlStationCargoHistory::Load(), SlStationCargoHistory::Save(), and StationGraphWindow::UpdateStatistics().

◆ lost

uint32_t GoodsEntry::CargoHistoryData::lost = 0

Cargo lost over the last period.

Definition at line 240 of file station_base.h.

Referenced by MaybeCrashAirplane(), and UpdateStationRating().

◆ supply

uint32_t GoodsEntry::CargoHistoryData::supply = 0

Cargo supplied over the last period.

Definition at line 239 of file station_base.h.


The documentation for this struct was generated from the following file: