OpenTTD Source 20260311-master-g511d3794ce
NetworkCompanyStats Struct Reference

Simple calculated statistics of a company. More...

#include <network_type.h>

Inheritance diagram for NetworkCompanyStats:
NetworkCompanyInfo

Public Types

using NetworkVehicleTypeArray = EnumClassIndexContainer<std::array<uint16_t, to_underlying(NetworkVehicleType::End)>, NetworkVehicleType>
 Array indexed by NetworkVehicleType.

Data Fields

NetworkVehicleTypeArray num_vehicle
 How many vehicles are there of this type?
NetworkVehicleTypeArray num_station
 How many stations are there of this type?

Detailed Description

Simple calculated statistics of a company.

Definition at line 56 of file network_type.h.

Member Typedef Documentation

◆ NetworkVehicleTypeArray

Field Documentation

◆ num_station

NetworkVehicleTypeArray NetworkCompanyStats::num_station

How many stations are there of this type?

Definition at line 60 of file network_type.h.

Referenced by NetworkGetCompanyStats().

◆ num_vehicle

NetworkVehicleTypeArray NetworkCompanyStats::num_vehicle

How many vehicles are there of this type?

Definition at line 59 of file network_type.h.


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