Helper structure for mapping choice lists.
More...
|
StringControlCode | type |
| The type of choice list.
|
|
char * | old_d |
| The old/original location of the "d" local variable.
|
|
int | offset |
| The offset for the plural/gender form.
|
|
SmallMap< byte, char * > | strings |
| Mapping of NewGRF supplied ID to the different strings in the choice list. More...
|
|
Helper structure for mapping choice lists.
Definition at line 193 of file newgrf_text.cpp.
◆ ~UnmappedChoiceList()
UnmappedChoiceList::~UnmappedChoiceList |
( |
| ) |
|
|
inline |
◆ UnmappedChoiceList()
UnmappedChoiceList::UnmappedChoiceList |
( |
StringControlCode |
type, |
|
|
char * |
old_d, |
|
|
int |
offset |
|
) |
| |
|
inline |
Initialise the mapping.
- Parameters
-
type | The type of mapping. |
old_d | The old begin of the string, i.e. from where to start writing again. |
offset | The offset to get the plural/gender from. |
Definition at line 208 of file newgrf_text.cpp.
◆ Flush()
char* UnmappedChoiceList::Flush |
( |
const LanguageMap * |
lm | ) |
|
|
inline |
◆ strings
SmallMap<byte, char *> UnmappedChoiceList::strings |
Mapping of NewGRF supplied ID to the different strings in the choice list.
Definition at line 218 of file newgrf_text.cpp.
The documentation for this struct was generated from the following file: