|
OpenTTD Source 20260711-master-g3fb3006dff
|
A log entry for a NewGRF bug. More...
#include <gamelog_internal.h>
Public Member Functions | |
| LoggedChangeGRFBug () | |
| Constructor for savegame loading. | |
| LoggedChangeGRFBug (uint64_t data, GrfID grfid, GRFBug bug) | |
| Create a NewGRF bug log 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 | |
| uint64_t | data = 0 |
| additional data | |
| GrfID | grfid {} |
| ID of problematic GRF. | |
| GRFBug | bug {} |
| type of bug, | |
| Data Fields inherited from LoggedChange | |
| GamelogChangeType | ct {} |
| The type of change. | |
A log entry for a NewGRF bug.
Definition at line 218 of file gamelog_internal.h.
|
inline |
Constructor for savegame loading.
Definition at line 220 of file gamelog_internal.h.
References LoggedChange::LoggedChange().
Create a NewGRF bug log entry.
| data | Bug specific extra data for identifying the buggy entry. |
| grfid | The NewGRF that is deemed buggy. |
| bug | The bug that has been seen. |
Definition at line 228 of file gamelog_internal.h.
References bug, data, 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 291 of file gamelog.cpp.
References AddGrfInfo(), bug, data, grfid, and VehLength.
| GRFBug LoggedChangeGRFBug::bug {} |
type of bug,
Definition at line 234 of file gamelog_internal.h.
Referenced by FormatTo(), Gamelog::GRFBugReverse(), and LoggedChangeGRFBug().
| uint64_t LoggedChangeGRFBug::data = 0 |
additional data
Definition at line 232 of file gamelog_internal.h.
Referenced by FormatTo(), Gamelog::GRFBugReverse(), and LoggedChangeGRFBug().
| GrfID LoggedChangeGRFBug::grfid {} |
ID of problematic GRF.
Definition at line 233 of file gamelog_internal.h.
Referenced by FormatTo(), Gamelog::GRFBugReverse(), and LoggedChangeGRFBug().