|
OpenTTD Source 20260711-master-g3fb3006dff
|
Types related to currencies. More...
Go to the source code of this file.
Data Structures | |
| struct | CurrencySpec |
| Specification of a currency. More... | |
Typedefs | |
| using | Currencies = EnumBitSet<Currency, uint64_t, Currency::End> |
Bitmask of Currency. | |
| using | CurrencySymbolPositions = EnumBitSet<CurrencySymbolPosition, uint8_t> |
Bitmask of CurrencySymbolPosition. | |
Enumerations | |
| enum class | Currency : uint8_t { GBP , USD , EUR , JPY , ATS , BEF , CHF , CZK , DEM , DKK , ESP , FIM , FRF , GRD , HUF , ISK , ITL , NLG , NOK , PLN , RON , RUR , SIT , SEK , YTL , SKK , BRL , EEK , LTL , KRW , ZAR , Custom , GEL , IRR , RUB , MXN , NTD , CNY , HKD , INR , IDR , MYR , LVL , PTE , UAH , VND , End } |
| This enum gives the currencies a unique id which must be maintained for savegame compatibility and in order to refer to them quickly, especially for referencing the custom one. More... | |
| enum class | CurrencySymbolPosition : uint8_t { Prefix , Suffix } |
| The currency symbol positions that we can show. More... | |
Variables | |
| static constexpr TimerGameCalendar::Year | CF_NOEURO {0} |
| Currency never switches to the Euro (as far as known). | |
| static constexpr TimerGameCalendar::Year | CF_ISEURO {1} |
| Currency is the Euro. | |
| static constexpr TimerGameCalendar::Year | MIN_EURO_YEAR {2000} |
| The earliest year custom currencies may switch to the Euro. | |
Types related to currencies.
Definition in file currency_type.h.
| using Currencies = EnumBitSet<Currency, uint64_t, Currency::End> |
Bitmask of Currency.
Definition at line 77 of file currency_type.h.
| using CurrencySymbolPositions = EnumBitSet<CurrencySymbolPosition, uint8_t> |
Bitmask of CurrencySymbolPosition.
Definition at line 86 of file currency_type.h.
|
strong |
This enum gives the currencies a unique id which must be maintained for savegame compatibility and in order to refer to them quickly, especially for referencing the custom one.
Definition at line 25 of file currency_type.h.
|
strong |
The currency symbol positions that we can show.
| Enumerator | |
|---|---|
| Prefix | Show the prefix value. |
| Suffix | Show the suffix value. |
Definition at line 80 of file currency_type.h.
|
staticconstexpr |
Currency is the Euro.
Definition at line 17 of file currency_type.h.
Referenced by GetMaskOfAllowedCurrencies().
|
staticconstexpr |
Currency never switches to the Euro (as far as known).
Definition at line 16 of file currency_type.h.
Referenced by GetMaskOfAllowedCurrencies(), CustomCurrencyWindow::GetWidgetString(), CustomCurrencyWindow::OnClick(), and CustomCurrencyWindow::OnQueryTextFinished().
|
staticconstexpr |
The earliest year custom currencies may switch to the Euro.
Definition at line 18 of file currency_type.h.
Referenced by CustomCurrencyWindow::OnClick(), and CustomCurrencyWindow::OnQueryTextFinished().