|
OpenTTD Source 20260704-master-gbf70c61fb8
|
A log entry for a NewGRF that was added. More...
#include <gamelog_internal.h>
Public Member Functions | |
| LoggedChangeGRFAdd () | |
| Constructor for savegame loading. | |
| LoggedChangeGRFAdd (const GRFIdentifier &ident) | |
| Create a log entry for an added 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. | |
| Public Member Functions inherited from GRFIdentifier | |
| bool | HasGrfIdentifier (uint32_t grfid, const MD5Hash *md5sum) const |
| Does the identification match the provided values? | |
Additional Inherited Members | |
| Data Fields inherited from LoggedChange | |
| GamelogChangeType | ct {} |
| The type of change. | |
| Data Fields inherited from GRFIdentifier | |
| uint32_t | grfid |
| GRF ID (defined by Action 0x08). | |
| MD5Hash | md5sum |
| MD5 checksum of file to distinguish files with the same GRF ID (eg. newer version of GRF). | |
A log entry for a NewGRF that was added.
Definition at line 120 of file gamelog_internal.h.
|
inline |
Constructor for savegame loading.
Definition at line 122 of file gamelog_internal.h.
References LoggedChange::LoggedChange().
|
inline |
Create a log entry for an added NewGRF.
| ident | The NewGRF that is added. |
Definition at line 128 of file gamelog_internal.h.
References 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 229 of file gamelog.cpp.
References AddGrfInfo(), Exact, FindGRFConfig(), GRFIdentifier::grfid, and GRFIdentifier::md5sum.