OpenTTD Source 20241224-master-gf74b0cf984
newgrf_text_type.h File Reference

Header of Action 04 "universal holder" structure. More...

Go to the source code of this file.

Data Structures

struct  GRFText
 A GRF text with associated language ID. More...
 
struct  LanguageMap
 Mapping of language data between a NewGRF and OpenTTD. More...
 
struct  LanguageMap::Mapping
 Mapping between NewGRF and OpenTTD IDs. More...
 

Typedefs

using GRFTextList = std::vector< GRFText >
 A GRF text with a list of translations.
 
using GRFTextWrapper = std::shared_ptr< GRFTextList >
 Reference counted wrapper around a GRFText pointer.
 

Variables

static const char32_t NFO_UTF8_IDENTIFIER = 0x00DE
 This character (thorn) indicates a unicode string to NFO.
 

Detailed Description

Header of Action 04 "universal holder" structure.

Definition in file newgrf_text_type.h.

Typedef Documentation

◆ GRFTextList

using GRFTextList = std::vector<GRFText>

A GRF text with a list of translations.

Definition at line 23 of file newgrf_text_type.h.

◆ GRFTextWrapper

using GRFTextWrapper = std::shared_ptr<GRFTextList>

Reference counted wrapper around a GRFText pointer.

Definition at line 25 of file newgrf_text_type.h.

Variable Documentation

◆ NFO_UTF8_IDENTIFIER

const char32_t NFO_UTF8_IDENTIFIER = 0x00DE
static

This character (thorn) indicates a unicode string to NFO.

Definition at line 14 of file newgrf_text_type.h.

Referenced by GlobalVarChangeInfo(), and TranslateTTDPatchCodes().