Alchemy
Loading...
Searching...
No Matches

edition.h

Go to the documentation of this file.
1#ifndef GUARD_EDITION_H
2#define GUARD_EDITION_H
3
4/// @file
5/// The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
6
7#if (defined(TBS_EDITION_JA) + defined(TBS_EDITION_EN) + \
8 defined(TBS_EDITION_DE) + defined(TBS_EDITION_ES) + \
9 defined(TBS_EDITION_FR) + defined(TBS_EDITION_IT)) > 1
10#error multiple game editions selected
11#endif
12
13// Compile-time language selectors, independent of gameplay revisions.
14#define LANGUAGE_JAPANESE 0
15#define LANGUAGE_ENGLISH 1
16#define LANGUAGE_GERMAN 2
17#define LANGUAGE_SPANISH 3
18#define LANGUAGE_FRENCH 4
19#define LANGUAGE_ITALIAN 5
20
21#if defined(TBS_EDITION_EN)
22#define LANGUAGE LANGUAGE_ENGLISH
23#elif defined(TBS_EDITION_DE)
24#define LANGUAGE LANGUAGE_GERMAN
25#elif defined(TBS_EDITION_ES)
26#define LANGUAGE LANGUAGE_SPANISH
27#elif defined(TBS_EDITION_FR)
28#define LANGUAGE LANGUAGE_FRENCH
29#elif defined(TBS_EDITION_IT)
30#define LANGUAGE LANGUAGE_ITALIAN
31#else
32#define LANGUAGE LANGUAGE_JAPANESE
33#endif
34
35#endif