OpenTTD Source 20260206-master-g4d4e37dbf1
LoggedChange Struct Referenceabstract
Inheritance diagram for LoggedChange:
LoggedChangeEmergencySave LoggedChangeGRFAdd LoggedChangeGRFBug LoggedChangeGRFChanged LoggedChangeGRFMoved LoggedChangeGRFParameterChanged LoggedChangeGRFRemoved LoggedChangeMode LoggedChangeOldVersion LoggedChangeRevision LoggedChangeSettingChanged

Public Member Functions

 LoggedChange (GamelogChangeType type=GLCT_NONE)
virtual void FormatTo (std::back_insert_iterator< std::string > &output_iterator, GrfIDMapping &grf_names, GamelogActionType action_type)=0
 Format the content of this change into the given output.

Data Fields

GamelogChangeType ct {}

Detailed Description

Definition at line 32 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChange()

LoggedChange::LoggedChange ( GamelogChangeType type = GLCT_NONE)
inline

Definition at line 33 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

virtual void LoggedChange::FormatTo ( std::back_insert_iterator< std::string > & output_iterator,
GrfIDMapping & grf_names,
GamelogActionType action_type )
pure virtual

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.

Implemented in LoggedChangeEmergencySave, LoggedChangeGRFAdd, LoggedChangeGRFBug, LoggedChangeGRFChanged, LoggedChangeGRFMoved, LoggedChangeGRFParameterChanged, LoggedChangeGRFRemoved, LoggedChangeMode, LoggedChangeOldVersion, LoggedChangeRevision, and LoggedChangeSettingChanged.

Field Documentation

◆ ct

GamelogChangeType LoggedChange::ct {}

Definition at line 44 of file gamelog_internal.h.


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