OpenTTD Source 20260206-master-g4d4e37dbf1
LoggedChangeGRFRemoved Struct Reference
Inheritance diagram for LoggedChangeGRFRemoved:
LoggedChange

Public Member Functions

 LoggedChangeGRFRemoved (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 removed GRF.
Data Fields inherited from LoggedChange
GamelogChangeType ct {}

Detailed Description

Definition at line 86 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeGRFRemoved() [1/2]

LoggedChangeGRFRemoved::LoggedChangeGRFRemoved ( )
inline

Definition at line 87 of file gamelog_internal.h.

◆ LoggedChangeGRFRemoved() [2/2]

LoggedChangeGRFRemoved::LoggedChangeGRFRemoved ( uint32_t grfid)
inline

Definition at line 88 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

void LoggedChangeGRFRemoved::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 240 of file gamelog.cpp.

References AddGrfInfo(), GLAT_LOAD, and grfid.

Field Documentation

◆ grfid

uint32_t LoggedChangeGRFRemoved::grfid = 0

ID of removed GRF.

Definition at line 92 of file gamelog_internal.h.

Referenced by FormatTo().


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