OpenTTD Source 20250501-master-ga30f251d05
|
Global state shared between strgen.cpp, game_text.cpp and strgen_base.cpp. More...
#include <strgen.h>
Data Fields | |
std::string | file = "(unknown file)" |
The filename of the input, so we can refer to it in errors/warnings. | |
size_t | cur_line = 0 |
The current line we're parsing in the input file. | |
size_t | errors = 0 |
size_t | warnings = 0 |
bool | show_warnings = false |
bool | annotate_todos = false |
bool | translation = false |
Is the current file actually a translation or not. | |
LanguagePackHeader | lang |
Header information about a language. | |
Global state shared between strgen.cpp, game_text.cpp and strgen_base.cpp.
size_t StrgenState::cur_line = 0 |
The current line we're parsing in the input file.
Definition at line 161 of file strgen.h.
Referenced by FatalErrorI(), StringReader::ParseFile(), and LanguageWriter::WriteLang().
std::string StrgenState::file = "(unknown file)" |
The filename of the input, so we can refer to it in errors/warnings.
Definition at line 160 of file strgen.h.
Referenced by FatalErrorI(), and StringReader::ParseFile().
LanguagePackHeader StrgenState::lang |
Header information about a language.
Definition at line 167 of file strgen.h.
Referenced by StringReader::ParseFile(), FileStringReader::ParseFile(), and LanguageWriter::WriteLang().
bool StrgenState::translation = false |
Is the current file actually a translation or not.
Definition at line 166 of file strgen.h.
Referenced by StringReader::ParseFile().