|
OpenTTD Source 20251116-master-g21329071df
|
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 163 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 162 of file strgen.h.
Referenced by FatalErrorI(), and StringReader::ParseFile().
| LanguagePackHeader StrgenState::lang |
Header information about a language.
Definition at line 169 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 168 of file strgen.h.
Referenced by StringReader::ParseFile().