|
OpenTTD Source 20260621-master-g720d10536d
|
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. | |
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 76 of file currency_type.h.
| using CurrencySymbolPositions = EnumBitSet<CurrencySymbolPosition, uint8_t> |
Bitmask of CurrencySymbolPosition.
Definition at line 85 of file currency_type.h.
| enum Currency : uint8_t |
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 79 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().