OpenTTD Source 20250205-master-gfd85ab1e2c
|
Class for storing amounts of cargo. More...
#include <cargo_type.h>
Public Member Functions | |
template<typename T > | |
const T | GetSum () const |
Get the sum of all cargo amounts. | |
uint | GetCount () const |
Get the amount of cargos that have an amount. | |
Class for storing amounts of cargo.
Definition at line 112 of file cargo_type.h.
|
inline |
Get the amount of cargos that have an amount.
Definition at line 127 of file cargo_type.h.
Referenced by GetTrainDetailsWndVScroll(), and UpdateCompanyRatingAndValue().
|
inline |
Get the sum of all cargo amounts.
Definition at line 118 of file cargo_type.h.
Referenced by GetTotalCapacityOfArticulatedParts(), and UpdateCompanyRatingAndValue().