|
OpenTTD Source 20260711-master-g3fb3006dff
|
A log entry for a NewGRF that was removed. More...
#include <gamelog_internal.h>
Public Member Functions | |
| LoggedChangeGRFRemoved () | |
| Constructor for savegame loading. | |
| LoggedChangeGRFRemoved (GrfID grfid) | |
| Create a log entry for a removed NewGRF. | |
| 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 | |
| GrfID | grfid {} |
| ID of removed GRF. | |
| Data Fields inherited from LoggedChange | |
| GamelogChangeType | ct {} |
| The type of change. | |
A log entry for a NewGRF that was removed.
Definition at line 134 of file gamelog_internal.h.
|
inline |
Constructor for savegame loading.
Definition at line 136 of file gamelog_internal.h.
References LoggedChange::LoggedChange().
|
inline |
Create a log entry for a removed NewGRF.
| grfid | The NewGRF that is removed. |
Definition at line 142 of file gamelog_internal.h.
References grfid, and LoggedChange::LoggedChange().
|
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 240 of file gamelog.cpp.
References AddGrfInfo(), grfid, and Load.
| GrfID LoggedChangeGRFRemoved::grfid {} |
ID of removed GRF.
Definition at line 146 of file gamelog_internal.h.
Referenced by FormatTo(), and LoggedChangeGRFRemoved().