10#ifndef CURRENCY_FUNC_H
11#define CURRENCY_FUNC_H
std::array< CurrencySpec, CURRENCY_END > _currency_specs
Array of currencies used by the system.
Currencies GetMaskOfAllowedCurrencies()
get a mask of the allowed currencies depending on the year
uint8_t 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 newgr...
Types related to currencies.
EnumBitSet< Currency, uint64_t, CURRENCY_END > Currencies
Bitmask of Currency.
@ CURRENCY_CUSTOM
Custom currency.
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
uint8_t currency
currency we currently use