OpenTTD Source 20250709-master-g7db135099a
|
Helper struct for the cargo details information. More...
Public Member Functions | |
bool | operator== (const CargoSummaryItem &other) const |
Used by std::find() and similar functions. | |
Data Fields | |
CargoType | cargo |
The cargo that is carried. | |
StringID | subtype |
STR_EMPTY if none. | |
uint | capacity |
Amount that can be carried. | |
uint | amount |
Amount that is carried. | |
StationID | source |
One of the source stations. | |
Helper struct for the cargo details information.
Definition at line 180 of file train_gui.cpp.
|
inline |
Used by std::find() and similar functions.
Definition at line 188 of file train_gui.cpp.
References cargo.
uint CargoSummaryItem::amount |
Amount that is carried.
Definition at line 184 of file train_gui.cpp.
Referenced by TrainDetailsCargoTab().
uint CargoSummaryItem::capacity |
Amount that can be carried.
Definition at line 183 of file train_gui.cpp.
Referenced by TrainDetailsCapacityTab().
CargoType CargoSummaryItem::cargo |
The cargo that is carried.
Definition at line 181 of file train_gui.cpp.
Referenced by GetCargoSummaryOfArticulatedVehicle(), operator==(), TrainDetailsCapacityTab(), and TrainDetailsCargoTab().
StationID CargoSummaryItem::source |
One of the source stations.
Definition at line 185 of file train_gui.cpp.
Referenced by TrainDetailsCargoTab().
StringID CargoSummaryItem::subtype |
STR_EMPTY if none.
Definition at line 182 of file train_gui.cpp.
Referenced by GetCargoSummaryOfArticulatedVehicle(), and TrainDetailsCapacityTab().