OpenTTD Source 20241224-master-gf74b0cf984
UnitsLong Struct Reference

Information about a specific unit system with a long variant. More...

Data Fields

UnitConversion c
 Conversion.
 
StringID s
 String for the short variant of the unit.
 
StringID l
 String for the long variant of the unit.
 
unsigned int decimal_places
 Number of decimal places embedded in the value. For example, 1 if the value is in tenths, and 3 if the value is in thousandths.
 

Detailed Description

Information about a specific unit system with a long variant.

Definition at line 764 of file strings.cpp.

Field Documentation

◆ c

UnitConversion UnitsLong::c

Conversion.

Definition at line 765 of file strings.cpp.

Referenced by FormatString().

◆ decimal_places

unsigned int UnitsLong::decimal_places

Number of decimal places embedded in the value. For example, 1 if the value is in tenths, and 3 if the value is in thousandths.

Definition at line 768 of file strings.cpp.

◆ l

StringID UnitsLong::l

String for the long variant of the unit.

Definition at line 767 of file strings.cpp.

◆ s

StringID UnitsLong::s

String for the short variant of the unit.

Definition at line 766 of file strings.cpp.


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