OpenTTD Source 20260324-master-gd9c35037d4
Town::AcceptedCargo Struct Reference

Storage for accepted cargo history. More...

#include <town.h>

Public Member Functions

 AcceptedCargo (CargoType cargo)
 Construct AcceptedCargo.

Data Fields

CargoType cargo = INVALID_CARGO
 Cargo type of accepted cargo.
HistoryData< AcceptedHistoryhistory {}
 Histor data of accepted cargo.

Detailed Description

Storage for accepted cargo history.

Definition at line 115 of file town.h.

Constructor & Destructor Documentation

◆ AcceptedCargo()

Town::AcceptedCargo::AcceptedCargo ( CargoType cargo)
inline

Construct AcceptedCargo.

Parameters
cargoCargo type of this AcceptedCargo.

Definition at line 124 of file town.h.

References cargo.

Field Documentation

◆ cargo

CargoType Town::AcceptedCargo::cargo = INVALID_CARGO

Cargo type of accepted cargo.

Definition at line 116 of file town.h.

Referenced by AcceptedCargo(), Town::GetCargoAccepted(), Town::GetOrCreateCargoAccepted(), and TownCargoGraphWindow::UpdateStatistics().

◆ history

HistoryData<AcceptedHistory> Town::AcceptedCargo::history {}

Histor data of accepted cargo.

Definition at line 117 of file town.h.

Referenced by DeliverGoods(), SlTownAcceptedHistory::Load(), and SlTownAcceptedHistory::Save().


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