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

Public Member Functions

 LoggedChangeGRFParameterChanged (uint32_t grfid)
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

uint32_t grfid = 0
 ID of GRF with changed parameters.
Data Fields inherited from LoggedChange
GamelogChangeType ct {}

Detailed Description

Definition at line 102 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeGRFParameterChanged() [1/2]

LoggedChangeGRFParameterChanged::LoggedChangeGRFParameterChanged ( )
inline

Definition at line 103 of file gamelog_internal.h.

◆ LoggedChangeGRFParameterChanged() [2/2]

LoggedChangeGRFParameterChanged::LoggedChangeGRFParameterChanged ( uint32_t grfid)
inline

Definition at line 104 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

void LoggedChangeGRFParameterChanged::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 272 of file gamelog.cpp.

References AddGrfInfo(), and grfid.

Field Documentation

◆ grfid

uint32_t LoggedChangeGRFParameterChanged::grfid = 0

ID of GRF with changed parameters.

Definition at line 108 of file gamelog_internal.h.

Referenced by FormatTo().


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