OpenTTD Source 20241224-master-gf74b0cf984
StringIDMapping Struct Reference

Information for mapping static StringIDs. More...

Public Member Functions

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

Data Fields

uint32_t grfid
 Source NewGRF.
 
StringID source
 Source StringID (GRF local).
 
std::function< void(StringID)> func
 Function for mapping result.
 

Detailed Description

Information for mapping static StringIDs.

Definition at line 457 of file newgrf.cpp.

Constructor & Destructor Documentation

◆ StringIDMapping()

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

Definition at line 462 of file newgrf.cpp.

Field Documentation

◆ func

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

Function for mapping result.

Definition at line 460 of file newgrf.cpp.

◆ grfid

uint32_t StringIDMapping::grfid

Source NewGRF.

Definition at line 458 of file newgrf.cpp.

◆ source

StringID StringIDMapping::source

Source StringID (GRF local).

Definition at line 459 of file newgrf.cpp.


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