|
OpenTTD Source 20260711-master-g3fb3006dff
|
Log element for the change of the game mode and landscape. More...
#include <gamelog_internal.h>
Public Member Functions | |
| LoggedChangeMode () | |
| Constructor for savegame loading. | |
| LoggedChangeMode (GameMode mode, LandscapeType landscape) | |
| Create the log for changing the game mode. | |
| 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. | |
Data Fields | |
| GameMode | mode {} |
| new game mode - Editor x Game | |
| LandscapeType | landscape {} |
| landscape (temperate, arctic, ...) | |
| Data Fields inherited from LoggedChange | |
| GamelogChangeType | ct {} |
| The type of change. | |
Log element for the change of the game mode and landscape.
Definition at line 62 of file gamelog_internal.h.
|
inline |
Constructor for savegame loading.
Definition at line 64 of file gamelog_internal.h.
References LoggedChange::LoggedChange().
|
inline |
Create the log for changing the game mode.
| mode | The new GameMode. |
| landscape | The new landscape. |
Definition at line 71 of file gamelog_internal.h.
References landscape, LoggedChange::LoggedChange(), and mode.
|
overridevirtual |
Format the content of this change into the given output.
| output_iterator | Destination of the formatted content. |
| grf_names | Cache/mapping of names of NewGRFs seen in the logs. |
| action_type | The context in which this method was called. |
Implements LoggedChange.
Definition at line 170 of file gamelog.cpp.
| LandscapeType LoggedChangeMode::landscape {} |
landscape (temperate, arctic, ...)
Definition at line 76 of file gamelog_internal.h.
Referenced by FormatTo(), LoggedChangeMode(), and Gamelog::TestMode().
| GameMode LoggedChangeMode::mode {} |
new game mode - Editor x Game
Definition at line 75 of file gamelog_internal.h.
Referenced by FormatTo(), LoggedChangeMode(), and Gamelog::TestMode().