10#ifndef CURRENCY_TYPE_H
11#define CURRENCY_TYPE_H
StrongType::Typedef< int32_t, struct YearTag< struct Calendar >, StrongType::Compare, StrongType::Integer > Year
EnumBitSet< CurrencySymbolPosition, uint8_t > CurrencySymbolPositions
Bitmask of CurrencySymbolPosition.
static constexpr TimerGameCalendar::Year MIN_EURO_YEAR
The earliest year custom currencies may switch to the Euro.
Currency
This enum gives the currencies a unique id which must be maintained for savegame compatibility and in...
@ End
Always the last item.
CurrencySymbolPosition
The currency symbol positions that we can show.
@ Suffix
Show the suffix value.
@ Prefix
Show the prefix value.
static constexpr TimerGameCalendar::Year CF_ISEURO
Currency is the Euro.
static constexpr TimerGameCalendar::Year CF_NOEURO
Currency never switches to the Euro (as far as known).
EnumBitSet< Currency, uint64_t, Currency::End > Currencies
Bitmask of Currency.
Types related to strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
Specification of a currency.
std::string separator
The thousands separator for this currency.
CurrencySymbolPositions symbol_pos
Which currency symbols should we show?
std::string prefix
Prefix to apply when formatting money in this currency.
TimerGameCalendar::Year to_euro
Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.
std::string suffix
Suffix to apply when formatting money in this currency.
std::string code
3 letter untranslated code to identify the currency.
uint16_t rate
The conversion rate compared to the base currency.
StringID name
Translated name of this currency.
Definition of the game-calendar-timer.