Files @ r4108:d2690ac7aa75
Branch filter:

Location: cpp/openttd-patchpack/source/currency.h

miham
(svn r5448) WebTranslator2 update to 2006-07-02 19:18:16
catalan - 19 fixed by jecaro (19)
norwegian - 11 fixed by oletk (5), brygge_2 (6)
romanian - 22 fixed by kneekoo (22)
swedish - 23 fixed, 1 deleted, 30 changed by cjw (54)
/* $Id$ */

#ifndef CURRENCY_H
#define CURRENCY_H

enum {
	CF_NOEURO = 0,
	CF_ISEURO = 1,
};

typedef struct {
	uint16 rate;
	char separator;
	uint16 to_euro;
	char prefix[16];
	char suffix[16];
} CurrencySpec;

extern CurrencySpec _currency_specs[];
extern const StringID _currency_string_list[];

// XXX small hack, but makes the rest of the code a bit nicer to read
#define CUSTOM_CURRENCY_ID 23
#define _custom_currency (_currency_specs[CUSTOM_CURRENCY_ID])
#define _currency ((const CurrencySpec*)&_currency_specs[_opt_ptr->currency])

uint GetMaskOfAllowedCurrencies(void);
void CheckSwitchToEuro(void);

#endif /* CURRENCY_H */