OpenTTD Source: Industry::ProducedCargo Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
Industry::ProducedCargo Struct Reference

## Data Fields
CargoID | cargo
| Cargo type.
uint16_t | waiting
| Amount of cargo produced.
uint8_t | rate
| Production rate.
std::array< ProducedHistory, 25 > | history
| History of cargo produced and transported for this month and 24 previous months.

## Detailed Description

Definition at line 78 of file industry.h.

## Field Documentation

## ◆ cargo

CargoID Industry::ProducedCargo::cargo

Cargo type.

Definition at line 79 of file industry.h.

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

## ◆ history

std::array<ProducedHistory, 25> Industry::ProducedCargo::history

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

Definition at line 82 of file industry.h.

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

## ◆ rate

uint8_t Industry::ProducedCargo::rate

Production rate.

Definition at line 81 of file industry.h.

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

## ◆ waiting

uint16_t Industry::ProducedCargo::waiting

Amount of cargo produced.

Definition at line 80 of file industry.h.

Referenced by IndustriesScopeResolver::GetVariable().

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

- src/industry.h