|
OpenTTD Source 20260621-master-g720d10536d
|
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. | |
Specification of a currency.
Definition at line 88 of file currency_type.h.
| 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().
| StringID CurrencySpec::name |
Translated name of this currency.
Definition at line 96 of file currency_type.h.
Referenced by GameOptionsWindow::BuildDropDownList(), and GameOptionsWindow::GetWidgetString().
| 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().
| uint16_t CurrencySpec::rate |
The conversion rate compared to the base currency.
Definition at line 89 of file currency_type.h.
Referenced by CustomCurrencyWindow::OnClick(), CheatWindow::OnQueryTextFinished(), CompanyWindow::OnQueryTextFinished(), CustomCurrencyWindow::OnQueryTextFinished(), GameOptionsWindow::OnQueryTextFinished(), and PerformanceRatingDetailWindow::UpdateWidgetSize().
| 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().
| 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().
| CurrencySymbolPositions CurrencySpec::symbol_pos |
Which currency symbols should we show?
Definition at line 95 of file currency_type.h.
| 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().