OpenTTD Source 20241224-master-gee860a5c8e
LanguageStrings Struct Reference

Container for the raw (unencoded) language strings of a language. More...

#include <game_text.hpp>

Public Member Functions

 LanguageStrings (const std::string &lang)
 
 LanguageStrings (const LanguageStrings &other)
 
 LanguageStrings (LanguageStrings &&other)
 
bool IsValid () const
 

Data Fields

std::string language
 Name of the language (base filename). Empty string if invalid.
 
StringList lines
 The lines of the file to pass into the parser/encoder.
 

Detailed Description

Container for the raw (unencoded) language strings of a language.

Definition at line 37 of file game_text.hpp.

Constructor & Destructor Documentation

◆ LanguageStrings() [1/4]

LanguageStrings::LanguageStrings ( )
inline

Definition at line 41 of file game_text.hpp.

◆ LanguageStrings() [2/4]

LanguageStrings::LanguageStrings ( const std::string &  lang)
inline

Definition at line 42 of file game_text.hpp.

◆ LanguageStrings() [3/4]

LanguageStrings::LanguageStrings ( const LanguageStrings other)
inline

Definition at line 43 of file game_text.hpp.

◆ LanguageStrings() [4/4]

LanguageStrings::LanguageStrings ( LanguageStrings &&  other)
inline

Definition at line 44 of file game_text.hpp.

Member Function Documentation

◆ IsValid()

bool LanguageStrings::IsValid ( ) const
inline

Definition at line 46 of file game_text.hpp.

Field Documentation

◆ language

std::string LanguageStrings::language

Name of the language (base filename). Empty string if invalid.

Definition at line 38 of file game_text.hpp.

◆ lines

StringList LanguageStrings::lines

The lines of the file to pass into the parser/encoder.

Definition at line 39 of file game_text.hpp.

Referenced by GetGameStringPtr(), and ReadRawLanguageStrings().


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