OpenTTD Source  20240919-master-gdf0233f4c2
CargoSummaryItem Struct Reference

Helper struct for the cargo details information. More...

Public Member Functions

bool operator!= (const CargoSummaryItem &other) const
 Used by CargoSummary::Find() and similar functions.
 
bool operator== (const CargoSummaryItem &other) const
 Used by std::find() and similar functions.
 

Data Fields

CargoID 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.
 

Detailed Description

Helper struct for the cargo details information.

Definition at line 165 of file train_gui.cpp.


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