OpenTTD Source 20260704-master-gbf70c61fb8
LoggedChangeEmergencySave Struct Reference

A log entry denoting that this savegame was involved in an emergency (crash) save. More...

#include <gamelog_internal.h>

Inheritance diagram for LoggedChangeEmergencySave:
LoggedChange

Public Member Functions

 LoggedChangeEmergencySave ()
 Create the entry.
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=GamelogChangeType::None)
 Create the log entry.
virtual ~LoggedChange ()=default
 Ensure the destructor of the sub classes are called as well.

Additional Inherited Members

Data Fields inherited from LoggedChange
GamelogChangeType ct {}
 The type of change.

Detailed Description

A log entry denoting that this savegame was involved in an emergency (crash) save.

Definition at line 238 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeEmergencySave()

LoggedChangeEmergencySave::LoggedChangeEmergencySave ( )
inline

Create the entry.

Definition at line 240 of file gamelog_internal.h.

References LoggedChange::LoggedChange().

Member Function Documentation

◆ FormatTo()

void LoggedChangeEmergencySave::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 302 of file gamelog.cpp.


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