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

Public Member Functions

 LoggedChangeRevision (const std::string &text, uint32_t newgrf, uint16_t slver, uint8_t modified)
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

std::string text {}
 revision string, _openttd_revision
uint32_t newgrf = 0
 _openttd_newgrf_version
uint16_t slver = 0
 _sl_version
uint8_t modified = 0
 _openttd_revision_modified
Data Fields inherited from LoggedChange
GamelogChangeType ct {}

Detailed Description

Definition at line 57 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeRevision() [1/2]

LoggedChangeRevision::LoggedChangeRevision ( )
inline

Definition at line 58 of file gamelog_internal.h.

◆ LoggedChangeRevision() [2/2]

LoggedChangeRevision::LoggedChangeRevision ( const std::string & text,
uint32_t newgrf,
uint16_t slver,
uint8_t modified )
inline

Definition at line 59 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

void LoggedChangeRevision::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 176 of file gamelog.cpp.

References modified, newgrf, slver, and text.

Field Documentation

◆ modified

uint8_t LoggedChangeRevision::modified = 0

_openttd_revision_modified

Definition at line 66 of file gamelog_internal.h.

Referenced by FormatTo(), Gamelog::Info(), and Gamelog::TestRevision().

◆ newgrf

uint32_t LoggedChangeRevision::newgrf = 0

_openttd_newgrf_version

Definition at line 64 of file gamelog_internal.h.

Referenced by FormatTo(), Gamelog::Info(), and Gamelog::TestRevision().

◆ slver

uint16_t LoggedChangeRevision::slver = 0

_sl_version

Definition at line 65 of file gamelog_internal.h.

Referenced by FormatTo().

◆ text

std::string LoggedChangeRevision::text {}

revision string, _openttd_revision

Definition at line 63 of file gamelog_internal.h.

Referenced by FormatTo(), and Gamelog::TestRevision().


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