10#ifndef CURRENCY_FUNC_H
11#define CURRENCY_FUNC_H
EnumIndexArray< CurrencySpec, Currency, Currency::End > _currency_specs
Array of currencies used by the system.
Currencies GetMaskOfAllowedCurrencies()
get a mask of the allowed currencies depending on the year
Currency GetNewgrfCurrencyIdConverted(uint8_t grfcurr_id)
Will return the ottd's index correspondence to the ttdpatch's id.
CurrencySpec & GetCustomCurrency()
Get the custom currency.
const CurrencySpec & GetCurrency()
Get the currently selected currency.
void ResetCurrencies(bool preserve_custom=true)
Will fill _currency_specs array with default values from _origin_currency_specs Called only from newg...
Types related to currencies.
Currency
This enum gives the currencies a unique id which must be maintained for savegame compatibility and in...
EnumBitSet< Currency, uint64_t, Currency::End > Currencies
Bitmask of Currency.
EnumClassIndexContainer< std::array< T, to_underlying(N)>, Index > EnumIndexArray
A typedef for EnumClassIndexContainer using std::array as the backing container type.
Types related to global configuration settings.
GameSettings & GetGameSettings()
Get the settings-object applicable for the current situation: the newgame settings when we're in the ...
Specification of a currency.
LocaleSettings locale
settings related to used currency/unit system in the current game
Currency currency
Currency we currently use.