OpenTTD Source 20260206-master-g4d4e37dbf1
StrgenState Struct Reference

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.

Detailed Description

Global state shared between strgen.cpp, game_text.cpp and strgen_base.cpp.

Definition at line 162 of file strgen.h.

Field Documentation

◆ annotate_todos

bool StrgenState::annotate_todos = false

Definition at line 168 of file strgen.h.

◆ cur_line

size_t StrgenState::cur_line = 0

The current line we're parsing in the input file.

Definition at line 164 of file strgen.h.

◆ errors

size_t StrgenState::errors = 0

Definition at line 165 of file strgen.h.

◆ file

std::string StrgenState::file = "(unknown file)"

The filename of the input, so we can refer to it in errors/warnings.

Definition at line 163 of file strgen.h.

◆ lang

LanguagePackHeader StrgenState::lang

Header information about a language.

Definition at line 170 of file strgen.h.

Referenced by LanguageWriter::WriteLang().

◆ show_warnings

bool StrgenState::show_warnings = false

Definition at line 167 of file strgen.h.

◆ translation

bool StrgenState::translation = false

Is the current file actually a translation or not.

Definition at line 169 of file strgen.h.

◆ warnings

size_t StrgenState::warnings = 0

Definition at line 166 of file strgen.h.


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