OpenTTD Source: StringIDMapping Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
StringIDMapping Struct Reference

Information for mapping static StringIDs. More...

## Public Member Functions
| StringIDMapping (uint32_t grfid, GRFStringID source, std::function< void(StringID)> &&func)

## Data Fields
uint32_t | grfid
| Source NewGRF.
GRFStringID | source
| Source grf-local GRFStringID.
std::function< void(StringID)> | func
| Function for mapping result.

## Detailed Description

Information for mapping static StringIDs.

Definition at line 26 of file newgrf_stringmapping.cpp.

## Constructor & Destructor Documentation

## ◆ StringIDMapping()

StringIDMapping::StringIDMapping | ( | uint32_t | grfid,
|  | GRFStringID | source,
|  | std::function< void(StringID)> && | func
| ) |  |
| inline

Definition at line 31 of file newgrf_stringmapping.cpp.

## Field Documentation

## ◆ func

std::function<void(StringID)> StringIDMapping::func

Function for mapping result.

Definition at line 29 of file newgrf_stringmapping.cpp.

## ◆ grfid

uint32_t StringIDMapping::grfid

Source NewGRF.

Definition at line 27 of file newgrf_stringmapping.cpp.

## ◆ source

GRFStringID StringIDMapping::source

Source grf-local GRFStringID.

Definition at line 28 of file newgrf_stringmapping.cpp.

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

- src/newgrf/newgrf_stringmapping.cpp