OpenTTD Source 20241224-master-gee860a5c8e
Units Struct Reference

Information about a specific unit system. More...

Data Fields

UnitConversion c
 Conversion.
 
StringID s
 String for 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.

Definition at line 757 of file strings.cpp.

Field Documentation

◆ c

◆ decimal_places

unsigned int Units::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 760 of file strings.cpp.

◆ s

StringID Units::s

String for the unit.

Definition at line 759 of file strings.cpp.


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