OpenTTD Source: UnmappedChoiceList Struct Reference

OpenTTD Source 14.0-beta1

Public Member Functions | Data Fields
UnmappedChoiceList Struct Reference

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.

## Detailed Description

Helper structure for mapping choice lists.

Definition at line 108 of file newgrf_text.cpp.

## Constructor & Destructor Documentation

## ◆ UnmappedChoiceList()

UnmappedChoiceList::UnmappedChoiceList | ( | StringControlCode | type,
|  | int | offset
| ) |  |
| inline

Initialise the mapping.

Parameters

  type | The type of mapping.
  offset | The offset to get the plural/gender from.

Definition at line 114 of file newgrf_text.cpp.

## Member Function Documentation

## ◆ Flush()

void UnmappedChoiceList::Flush | ( | const LanguageMap * | lm,
|  | std::ostringstream & | dest
| ) |  |
| inline

Flush this choice list into the destination string.

Parameters

  lm | The current language mapping.
  dest | Target to write to.

Definition at line 130 of file newgrf_text.cpp.

The documentation for this struct was generated from the following file:

- src/newgrf_text.cpp