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

Public Member Functions

 LoggedChangeMode (uint8_t mode, LandscapeType landscape)
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

uint8_t mode = 0
 new game mode - Editor x Game
LandscapeType landscape {}
 landscape (temperate, arctic, ...)
Data Fields inherited from LoggedChange
GamelogChangeType ct {}

Detailed Description

Definition at line 47 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeMode() [1/2]

LoggedChangeMode::LoggedChangeMode ( )
inline

Definition at line 48 of file gamelog_internal.h.

◆ LoggedChangeMode() [2/2]

LoggedChangeMode::LoggedChangeMode ( uint8_t mode,
LandscapeType landscape )
inline

Definition at line 49 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

void LoggedChangeMode::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 170 of file gamelog.cpp.

References landscape, and mode.

Field Documentation

◆ landscape

LandscapeType LoggedChangeMode::landscape {}

landscape (temperate, arctic, ...)

Definition at line 54 of file gamelog_internal.h.

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

◆ mode

uint8_t LoggedChangeMode::mode = 0

new game mode - Editor x Game

Definition at line 53 of file gamelog_internal.h.

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


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