OpenTTD Source 20250709-master-g7db135099a
CargoSummaryItem Struct Reference

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.
 

Detailed Description

Helper struct for the cargo details information.

Definition at line 180 of file train_gui.cpp.

Member Function Documentation

◆ operator==()

bool CargoSummaryItem::operator== ( const CargoSummaryItem other) const
inline

Used by std::find() and similar functions.

Definition at line 188 of file train_gui.cpp.

References cargo.

Field Documentation

◆ amount

uint CargoSummaryItem::amount

Amount that is carried.

Definition at line 184 of file train_gui.cpp.

Referenced by TrainDetailsCargoTab().

◆ capacity

uint CargoSummaryItem::capacity

Amount that can be carried.

Definition at line 183 of file train_gui.cpp.

Referenced by TrainDetailsCapacityTab().

◆ cargo

CargoType CargoSummaryItem::cargo

The cargo that is carried.

Definition at line 181 of file train_gui.cpp.

Referenced by GetCargoSummaryOfArticulatedVehicle(), operator==(), TrainDetailsCapacityTab(), and TrainDetailsCargoTab().

◆ source

StationID CargoSummaryItem::source

One of the source stations.

Definition at line 185 of file train_gui.cpp.

Referenced by TrainDetailsCargoTab().

◆ subtype

StringID CargoSummaryItem::subtype

STR_EMPTY if none.

Definition at line 182 of file train_gui.cpp.

Referenced by GetCargoSummaryOfArticulatedVehicle(), and TrainDetailsCapacityTab().


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