|
OpenTTD Source 20260531-master-g0e951f3528
|
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=GLCT_NONE) | |
| 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 {} |
Log element for the change of the game mode and landscape.
Definition at line 50 of file gamelog_internal.h.
|
inline |
Constructor for savegame loading.
Definition at line 52 of file gamelog_internal.h.
References GLCT_MODE.
|
inline |
|
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 172 of file gamelog.cpp.
| LandscapeType LoggedChangeMode::landscape {} |
landscape (temperate, arctic, ...)
Definition at line 64 of file gamelog_internal.h.
Referenced by FormatTo(), LoggedChangeMode(), and Gamelog::TestMode().
| GameMode LoggedChangeMode::mode {} |
new game mode - Editor x Game
Definition at line 63 of file gamelog_internal.h.
Referenced by FormatTo(), LoggedChangeMode(), and Gamelog::TestMode().