87 #define _custom_currency (_currency_specs[CURRENCY_CUSTOM]) 88 #define _currency ((const CurrencySpec*)&_currency_specs[GetGameSettings().locale.currency])
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
uint64 GetMaskOfAllowedCurrencies()
get a mask of the allowed currencies depending on the year
byte symbol_pos
The currency symbol is represented by two possible values, prefix and suffix Usage of one or the othe...
void CheckSwitchToEuro()
Verify if the currency chosen by the user is about to be converted to Euro.
Currencies
This enum gives the currencies a unique id which must be maintained for savegame compatibility and in...
CurrencySpec _currency_specs[CURRENCY_END]
Array of currencies used by the system.
static const int CF_NOEURO
Currency never switches to the Euro (as far as known).
void ResetCurrencies(bool preserve_custom=true)
Will fill _currency_specs array with default values from origin_currency_specs Called only from newgr...
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Year to_euro
Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.
StringID * BuildCurrencyDropdown()
Build a list of currency names StringIDs to use in a dropdown list.
Specification of a currency.
Types related to strings.
Types related to the dates in OpenTTD.
static const int CF_ISEURO
Currency is the Euro.
byte GetNewgrfCurrencyIdConverted(byte grfcurr_id)
Will return the ottd's index correspondence to the ttdpatch's id.