equal
deleted
inserted
replaced
3 /** @file strings_type.h Types related to strings. */ |
3 /** @file strings_type.h Types related to strings. */ |
4 |
4 |
5 #ifndef STRINGS_TYPE_H |
5 #ifndef STRINGS_TYPE_H |
6 #define STRINGS_TYPE_H |
6 #define STRINGS_TYPE_H |
7 |
7 |
|
8 /** |
|
9 * Numeric value that represents a string, independent of the selected language. |
|
10 */ |
8 typedef uint16 StringID; |
11 typedef uint16 StringID; |
9 static const StringID INVALID_STRING_ID = 0xFFFF; |
12 static const StringID INVALID_STRING_ID = 0xFFFF; ///< Constant representing an invalid string |
10 |
13 |
11 enum { |
14 enum { |
12 MAX_LANG = 64, |
15 MAX_LANG = 64, ///< Maximal number of languages supported by the game |
13 }; |
16 }; |
14 |
17 |
15 /** Information about a language */ |
18 /** Information about a language */ |
16 struct Language { |
19 struct Language { |
17 char *name; ///< The internal name of the language |
20 char *name; ///< The internal name of the language |
24 int curr; ///< Currently selected language index |
27 int curr; ///< Currently selected language index |
25 char curr_file[MAX_PATH]; ///< Currently selected language file name without path (needed for saving the filename of the loaded language). |
28 char curr_file[MAX_PATH]; ///< Currently selected language file name without path (needed for saving the filename of the loaded language). |
26 Language ent[MAX_LANG]; ///< Information about the languages |
29 Language ent[MAX_LANG]; ///< Information about the languages |
27 }; |
30 }; |
28 |
31 |
29 // special string constants |
32 /** Special string constants */ |
30 enum SpecialStrings { |
33 enum SpecialStrings { |
31 |
34 |
32 // special strings for town names. the town name is generated dynamically on request. |
35 // special strings for town names. the town name is generated dynamically on request. |
33 SPECSTR_TOWNNAME_START = 0x20C0, |
36 SPECSTR_TOWNNAME_START = 0x20C0, |
34 SPECSTR_TOWNNAME_ENGLISH = SPECSTR_TOWNNAME_START, |
37 SPECSTR_TOWNNAME_ENGLISH = SPECSTR_TOWNNAME_START, |