OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
101 #define _custom_currency (_currency_specs[CURRENCY_CUSTOM])
102 #define _currency ((const CurrencySpec*)&_currency_specs[GetGameSettings().locale.currency])
CurrencySpec _currency_specs[CURRENCY_END]
Array of currencies used by the system.
@ CURRENCY_RON
Romenian Leu.
static const int CF_NOEURO
Currency never switches to the Euro (as far as known).
@ CURRENCY_DEM
Deutsche Mark.
@ CURRENCY_HUF
Hungarian Forint.
uint64 GetMaskOfAllowedCurrencies()
get a mask of the allowed currencies depending on the year
@ CURRENCY_ZAR
South African Rand.
@ CURRENCY_IDR
Indonesian Rupiah.
@ CURRENCY_RUR
Russian Rouble.
byte symbol_pos
The currency symbol is represented by two possible values, prefix and suffix Usage of one or the othe...
@ CURRENCY_MYR
Malaysian Ringgit.
@ CURRENCY_PLN
Polish Zloty.
int32 Year
Type for the year, note: 0 based, i.e. starts at the year 0.
Currencies
This enum gives the currencies a unique id which must be maintained for savegame compatibility and in...
@ CURRENCY_BEF
Belgian Franc.
@ CURRENCY_SIT
Slovenian Tolar.
@ CURRENCY_KRW
South Korean Won.
@ CURRENCY_GEL
Georgian Lari.
@ CURRENCY_SKK
Slovak Kornuna.
@ CURRENCY_GBP
British Pound.
std::string suffix
Suffix to apply when formatting money in this currency.
static const int CF_ISEURO
Currency is the Euro.
void ResetCurrencies(bool preserve_custom=true)
Will fill _currency_specs array with default values from origin_currency_specs Called only from newgr...
@ CURRENCY_CHF
Swiss Franc.
@ CURRENCY_MXN
Mexican Peso.
StringID * BuildCurrencyDropdown()
Build a list of currency names StringIDs to use in a dropdown list.
@ CURRENCY_NOK
Norwegian Krone.
@ CURRENCY_YTL
Turkish Lira.
@ CURRENCY_DKK
Danish Krona.
@ CURRENCY_FIM
Finish Markka.
void CheckSwitchToEuro()
Verify if the currency chosen by the user is about to be converted to Euro.
Specification of a currency.
@ CURRENCY_ESP
Spanish Peseta.
@ CURRENCY_LTL
Lithuanian Litas.
@ CURRENCY_SEK
Swedish Krona.
@ CURRENCY_HKD
Hong Kong Dollar.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
@ CURRENCY_END
always the last item
@ CURRENCY_GRD
Greek Drachma.
@ CURRENCY_BRL
Brazilian Real.
@ CURRENCY_CZK
Czech Koruna.
uint16 rate
The conversion rate compared to the base currency.
@ CURRENCY_CNY
Chinese Renminbi.
@ CURRENCY_ITL
Italian Lira.
@ CURRENCY_NLG
Dutch Gulden.
@ CURRENCY_INR
Indian Rupee.
@ CURRENCY_ISK
Icelandic Krona.
Year to_euro
Year of switching to the Euro. May also be CF_NOEURO or CF_ISEURO.
std::string separator
The thousands separator for this currency.
@ CURRENCY_JPY
Japanese Yen.
@ CURRENCY_EEK
Estonian Krooni.
byte GetNewgrfCurrencyIdConverted(byte grfcurr_id)
Will return the ottd's index correspondence to the ttdpatch's id.
@ CURRENCY_IRR
Iranian Rial.
@ CURRENCY_NTD
New Taiwan Dollar.
@ CURRENCY_FRF
French Franc.
std::string prefix
Prefix to apply when formatting money in this currency.
@ CURRENCY_RUB
New Russian Ruble.
@ CURRENCY_CUSTOM
Custom currency.
@ CURRENCY_ATS
Austrian Schilling.