OpenTTD Source: Industry::ProducedCargo Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
Industry::ProducedCargo Struct Reference

## Data Fields
CargoType | cargo = 0
| Cargo type.
uint16_t | waiting = 0
| Amount of cargo produced.
uint8_t | rate = 0
| Production rate.
HistoryData< ProducedHistory > | history {}
| History of cargo produced and transported for this month and 24 previous months.

## Detailed Description

Definition at line 73 of file industry.h.

## Field Documentation

## ◆ cargo

CargoType Industry::ProducedCargo::cargo = 0

Cargo type.

Definition at line 74 of file industry.h.

Referenced by DoCreateNewIndustry(), Industry::GetCargoProduced(), Industry::GetCargoProduced(), IndustryDirectoryWindow::GetCargoTransportedPercentsIfValid(), and IndustriesScopeResolver::GetVariable().

## ◆ history

HistoryData<ProducedHistory> Industry::ProducedCargo::history {}

History of cargo produced and transported for this month and 24 previous months.

Definition at line 77 of file industry.h.

Referenced by ChangeIndustryProduction(), IndustryDirectoryWindow::GetCargoTransportedPercentsIfValid(), and IndustriesScopeResolver::GetVariable().

## ◆ rate

uint8_t Industry::ProducedCargo::rate = 0

Production rate.

Definition at line 76 of file industry.h.

Referenced by DoCreateNewIndustry(), and IndustriesScopeResolver::GetVariable().

## ◆ waiting

uint16_t Industry::ProducedCargo::waiting = 0

Amount of cargo produced.

Definition at line 75 of file industry.h.

Referenced by IndustriesScopeResolver::GetVariable().

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

- src/industry.h