|
OpenTTD Source 20260711-master-g3fb3006dff
|
A log entry for loading a really old savegame. More...
#include <gamelog_internal.h>
Public Member Functions | |
| LoggedChangeOldVersion () | |
| Constructor for savegame loading. | |
| LoggedChangeOldVersion (uint32_t type, uint32_t version) | |
| Create the entry. | |
| 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 | |
| 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 {} |
| The type of change. | |
A log entry for loading a really old savegame.
Definition at line 102 of file gamelog_internal.h.
|
inline |
Constructor for savegame loading.
Definition at line 104 of file gamelog_internal.h.
References LoggedChange::LoggedChange().
|
inline |
Create the entry.
| type | The SavegameType. |
| version | The TTDP or ancient OpenTTD version if available. |
Definition at line 111 of file gamelog_internal.h.
References LoggedChange::LoggedChange(), type, and version.
|
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 191 of file gamelog.cpp.
References GB(), OTTD, TTD, TTDP1, TTDP2, TTO, type, and version.
| uint32_t LoggedChangeOldVersion::type = 0 |
type of savegame,
Definition at line 115 of file gamelog_internal.h.
Referenced by FormatTo(), and LoggedChangeOldVersion().
| uint32_t LoggedChangeOldVersion::version = 0 |
major and minor version OR ttdp version
Definition at line 116 of file gamelog_internal.h.
Referenced by FormatTo(), and LoggedChangeOldVersion().