OpenTTD Source 20241224-master-gee860a5c8e
GameStrings Struct Reference

Container for all the game strings. More...

#include <game_text.hpp>

Public Member Functions

void Compile ()
 Compile the language.
 
 GameStrings (const GameStrings &)=delete
 
 GameStrings (GameStrings &&)=delete
 
GameStringsoperator= (const GameStrings &)=delete
 
GameStringsoperator= (GameStrings &&)=delete
 

Data Fields

uint version
 The version of the language strings.
 
LanguageStringscur_language
 The current (compiled) language.
 
std::vector< LanguageStringsraw_strings
 The raw strings per language, first must be English/the master language!.
 
std::vector< LanguageStringscompiled_strings
 The compiled strings per language, first must be English/the master language!.
 
StringList string_names
 The names of the compiled strings.
 
StringParamsList string_params
 The parameters for the strings.
 

Detailed Description

Container for all the game strings.

Definition at line 50 of file game_text.hpp.

Member Function Documentation

◆ Compile()

Field Documentation

◆ compiled_strings

std::vector<LanguageStrings> GameStrings::compiled_strings

The compiled strings per language, first must be English/the master language!.

Definition at line 55 of file game_text.hpp.

Referenced by Compile(), and ReconsiderGameScriptLanguage().

◆ cur_language

LanguageStrings* GameStrings::cur_language

The current (compiled) language.

Definition at line 52 of file game_text.hpp.

Referenced by GetGameStringPtr(), and ReconsiderGameScriptLanguage().

◆ raw_strings

std::vector<LanguageStrings> GameStrings::raw_strings

The raw strings per language, first must be English/the master language!.

Definition at line 54 of file game_text.hpp.

Referenced by LanguageScanner::AddFile(), Compile(), GSTRChunkHandler::Load(), LoadTranslations(), and GSTRChunkHandler::Save().

◆ string_names

StringList GameStrings::string_names

The names of the compiled strings.

Definition at line 56 of file game_text.hpp.

Referenced by Compile(), GetGameStringName(), and RegisterGameTranslation().

◆ string_params

StringParamsList GameStrings::string_params

The parameters for the strings.

Definition at line 57 of file game_text.hpp.

Referenced by Compile(), and GetGameStringParams().

◆ version

uint GameStrings::version

The version of the language strings.

Definition at line 51 of file game_text.hpp.

Referenced by Compile().


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