OpenTTD Source 20260208-master-g43af8e94d0
LoggedChangeGRFBug Struct Reference
Inheritance diagram for LoggedChangeGRFBug:
LoggedChange

Public Member Functions

 LoggedChangeGRFBug (uint64_t data, uint32_t grfid, GRFBug bug)
void FormatTo (std::back_insert_iterator< std::string > &output_iterator, GrfIDMapping &grf_names, GamelogActionType action_type) override
 Format the content of this change into the given output.
Public Member Functions inherited from LoggedChange
 LoggedChange (GamelogChangeType type=GLCT_NONE)

Data Fields

uint64_t data = 0
 additional data
uint32_t grfid = 0
 ID of problematic GRF.
GRFBug bug {}
 type of bug,
Data Fields inherited from LoggedChange
GamelogChangeType ct {}

Detailed Description

Definition at line 132 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeGRFBug() [1/2]

LoggedChangeGRFBug::LoggedChangeGRFBug ( )
inline

Definition at line 133 of file gamelog_internal.h.

◆ LoggedChangeGRFBug() [2/2]

LoggedChangeGRFBug::LoggedChangeGRFBug ( uint64_t data,
uint32_t grfid,
GRFBug bug )
inline

Definition at line 134 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

void LoggedChangeGRFBug::FormatTo ( std::back_insert_iterator< std::string > & output_iterator,
GrfIDMapping & grf_names,
GamelogActionType action_type )
overridevirtual

Format the content of this change into the given output.

Parameters
output_iteratorDestination of the formatted content.
grf_namesCache/mapping of names of NewGRFs seen in the logs.
action_typeThe context in which this method was called.

Implements LoggedChange.

Definition at line 291 of file gamelog.cpp.

References AddGrfInfo(), bug, data, grfid, and VehLength.

Field Documentation

◆ bug

GRFBug LoggedChangeGRFBug::bug {}

type of bug,

See also
enum GRFBugs

Definition at line 140 of file gamelog_internal.h.

Referenced by FormatTo(), and Gamelog::GRFBugReverse().

◆ data

uint64_t LoggedChangeGRFBug::data = 0

additional data

Definition at line 138 of file gamelog_internal.h.

Referenced by FormatTo(), and Gamelog::GRFBugReverse().

◆ grfid

uint32_t LoggedChangeGRFBug::grfid = 0

ID of problematic GRF.

Definition at line 139 of file gamelog_internal.h.

Referenced by FormatTo(), and Gamelog::GRFBugReverse().


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