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

Public Member Functions

 LoggedChangeOldVersion (uint32_t type, uint32_t version)
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 type = 0
 type of savegame,
uint32_t version = 0
 major and minor version OR ttdp version
Data Fields inherited from LoggedChange
GamelogChangeType ct {}

Detailed Description

Definition at line 69 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeOldVersion() [1/2]

LoggedChangeOldVersion::LoggedChangeOldVersion ( )
inline

Definition at line 70 of file gamelog_internal.h.

◆ LoggedChangeOldVersion() [2/2]

LoggedChangeOldVersion::LoggedChangeOldVersion ( uint32_t type,
uint32_t version )
inline

Definition at line 71 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

void LoggedChangeOldVersion::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 191 of file gamelog.cpp.

References GB(), SGT_OTTD, SGT_TTD, SGT_TTDP1, SGT_TTDP2, SGT_TTO, type, and version.

Field Documentation

◆ type

uint32_t LoggedChangeOldVersion::type = 0

type of savegame,

See also
SavegameType

Definition at line 75 of file gamelog_internal.h.

Referenced by FormatTo().

◆ version

uint32_t LoggedChangeOldVersion::version = 0

major and minor version OR ttdp version

Definition at line 76 of file gamelog_internal.h.

Referenced by FormatTo().


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