OpenTTD Source 20260711-master-g3fb3006dff
gamelog_internal.h File Reference

Declaration shared among gamelog.cpp and saveload/gamelog_sl.cpp. More...

#include "gamelog.h"
#include "openttd.h"
#include "landscape_type.h"

Go to the source code of this file.

Data Structures

struct  GRFPresence
 Information about the presence of a Grf at a certain point during gamelog history Note about missing Grfs: Changes to missing Grfs are not logged including manual removal of the Grf. More...
struct  LoggedChange
 Container for any change that we deem needs to be logged. More...
struct  LoggedChangeMode
 Log element for the change of the game mode and landscape. More...
struct  LoggedChangeRevision
 A log entry for a change in OpenTTD version. More...
struct  LoggedChangeOldVersion
 A log entry for loading a really old savegame. More...
struct  LoggedChangeGRFAdd
 A log entry for a NewGRF that was added. More...
struct  LoggedChangeGRFRemoved
 A log entry for a NewGRF that was removed. More...
struct  LoggedChangeGRFChanged
 A log entry for a NewGRF that was changed. More...
struct  LoggedChangeGRFParameterChanged
 A log entry for a NewGRF for which a parameter was changed. More...
struct  LoggedChangeGRFMoved
 A log entry for a NewGRF that was moved. More...
struct  LoggedChangeSettingChanged
 A log entry for changing a setting. More...
struct  LoggedChangeGRFBug
 A log entry for a NewGRF bug. More...
struct  LoggedChangeEmergencySave
 A log entry denoting that this savegame was involved in an emergency (crash) save. More...
struct  LoggedAction
 Contains information about one logged action that caused at least one logged change. More...
struct  GamelogInternalData
 Container for some internal data. More...

Typedefs

using GrfIDMapping = std::map<GrfID, GRFPresence>
 A mapping from GrfID to the GRFPresence.

Detailed Description

Declaration shared among gamelog.cpp and saveload/gamelog_sl.cpp.

Definition in file gamelog_internal.h.

Typedef Documentation

◆ GrfIDMapping

using GrfIDMapping = std::map<GrfID, GRFPresence>

A mapping from GrfID to the GRFPresence.

Definition at line 37 of file gamelog_internal.h.