OpenTTD Source 20260621-master-g720d10536d
CurrencySpec Struct Reference

Specification of a currency. More...

#include <currency_type.h>

Data Fields

uint16_t rate
 The conversion rate compared to the base currency.
std::string separator
 The thousands separator for this currency.
TimerGameCalendar::Year to_euro
 Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.
std::string prefix
 Prefix to apply when formatting money in this currency.
std::string suffix
 Suffix to apply when formatting money in this currency.
std::string code
 3 letter untranslated code to identify the currency.
CurrencySymbolPositions symbol_pos
 Which currency symbols should we show?
StringID name
 Translated name of this currency.

Detailed Description

Specification of a currency.

Definition at line 88 of file currency_type.h.

Field Documentation

◆ code

std::string CurrencySpec::code

3 letter untranslated code to identify the currency.

Definition at line 94 of file currency_type.h.

Referenced by GameOptionsWindow::BuildDropDownList(), and GameOptionsWindow::GetWidgetString().

◆ name

StringID CurrencySpec::name

Translated name of this currency.

Definition at line 96 of file currency_type.h.

Referenced by GameOptionsWindow::BuildDropDownList(), and GameOptionsWindow::GetWidgetString().

◆ prefix

std::string CurrencySpec::prefix

Prefix to apply when formatting money in this currency.

Definition at line 92 of file currency_type.h.

Referenced by CustomCurrencyWindow::OnClick(), and CustomCurrencyWindow::OnQueryTextFinished().

◆ rate

◆ separator

std::string CurrencySpec::separator

The thousands separator for this currency.

Definition at line 90 of file currency_type.h.

Referenced by CustomCurrencyWindow::OnClick(), and CustomCurrencyWindow::OnQueryTextFinished().

◆ suffix

std::string CurrencySpec::suffix

Suffix to apply when formatting money in this currency.

Definition at line 93 of file currency_type.h.

Referenced by CustomCurrencyWindow::OnClick(), and CustomCurrencyWindow::OnQueryTextFinished().

◆ symbol_pos

CurrencySymbolPositions CurrencySpec::symbol_pos

Which currency symbols should we show?

Definition at line 95 of file currency_type.h.

◆ to_euro

TimerGameCalendar::Year CurrencySpec::to_euro

Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.

Definition at line 91 of file currency_type.h.

Referenced by CustomCurrencyWindow::OnClick(), and CustomCurrencyWindow::OnQueryTextFinished().


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