OpenTTD Source: CompanyEconomyEntry Struct Reference

OpenTTD Source 15.0-RC2

Data Fields
CompanyEconomyEntry Struct Reference

Statistics about the economy. More...

`#include <company_base.h>`

## Data Fields
Money | income = 0
| The amount of income.
Money | expenses = 0
| The amount of expenses.
CargoArray | delivered_cargo {}
| The amount of delivered cargo.
int32_t | performance_history = 0
| Company score (scale 0-1000)
Money | company_value = 0
| The value of the company.

## Detailed Description

Statistics about the economy.

Definition at line 24 of file company_base.h.

## Field Documentation

## ◆ company_value

Money CompanyEconomyEntry::company_value = 0

The value of the company.

Definition at line 29 of file company_base.h.

## ◆ delivered_cargo

CargoArray CompanyEconomyEntry::delivered_cargo {}

The amount of delivered cargo.

Definition at line 27 of file company_base.h.

Referenced by DeliverGoods().

## ◆ expenses

Money CompanyEconomyEntry::expenses = 0

The amount of expenses.

Definition at line 26 of file company_base.h.

Referenced by SubtractMoneyFromAnyCompany().

## ◆ income

Money CompanyEconomyEntry::income = 0

The amount of income.

Definition at line 25 of file company_base.h.

Referenced by SubtractMoneyFromAnyCompany().

## ◆ performance_history

int32_t CompanyEconomyEntry::performance_history = 0

Company score (scale 0-1000)

Definition at line 28 of file company_base.h.

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

- src/company_base.h