OpenTTD Source
1.11.0-beta2
|
Helper structure for mapping choice lists. More...
Public Member Functions | |
UnmappedChoiceList (StringControlCode type, int offset) | |
Initialise the mapping. More... | |
void | Flush (const LanguageMap *lm, std::ostringstream &dest) |
Flush this choice list into the destination string. More... | |
Data Fields | |
StringControlCode | type |
The type of choice list. | |
int | offset |
The offset for the plural/gender form. | |
std::map< byte, std::stringstream > | strings |
Mapping of NewGRF supplied ID to the different strings in the choice list. | |
Helper structure for mapping choice lists.
Definition at line 113 of file newgrf_text.cpp.
|
inline |
Initialise the mapping.
type | The type of mapping. |
offset | The offset to get the plural/gender from. |
Definition at line 119 of file newgrf_text.cpp.
|
inline |
Flush this choice list into the destination string.
lm | The current language mapping. |
dest | Target to write to. |
Definition at line 135 of file newgrf_text.cpp.
References grfmsg(), and Utf8Encode().