|
OpenTTD Source 20260711-master-g3fb3006dff
|
Functions to be called to log fundamental changes to the game. More...
Go to the source code of this file.
Data Structures | |
| class | Gamelog |
Enumerations | |
| enum class | GamelogActionType : uint8_t { Start , Load , GRF , Cheat , Setting , GRFBug , Emergency , End , None = 0xFF } |
| The actions we log. More... | |
| enum class | GamelogChangeType : uint8_t { Mode , Revision , OldVer , Setting , GRFAdd , GRFRem , GRFCompat , GRFParam , GRFMove , GRFBug , Emergency , End , None = 0xFF } |
| Type of logged change. More... | |
Variables | |
| Gamelog | _gamelog |
| Gamelog instance. | |
Functions to be called to log fundamental changes to the game.
Definition in file gamelog.h.
|
strong |
|
strong |
Type of logged change.
| Enumerator | |
|---|---|
| Mode | Scenario editor x Game, different landscape. |
| Revision | Changed game revision string. |
| OldVer | Loaded from savegame without logged data. |
| Setting | Non-networksafe setting value changed. |
| GRFAdd | Removed GRF. |
| GRFRem | Added GRF. |
| GRFCompat | Loading compatible GRF. |
| GRFParam | GRF parameter changed. |
| GRFMove | GRF order changed. |
| GRFBug | GRF bug triggered. |
| Emergency | Emergency savegame. |
| End | End marker. |
| None | In savegames, end of list. |
|
extern |
Gamelog instance.
Definition at line 31 of file gamelog.cpp.
Referenced by AfterLoadGame(), IntSettingDesc::ChangeValue(), ConGamelogPrint(), DoLoad(), HandleCrash(), HandleCrash(), HandleSavegameLoadCrash(), GLOGChunkHandler::Load(), NewGRFConfirmationCallback(), GLOGChunkHandler::Save(), SaveOrLoad(), ShutdownGame(), SlError(), SurveyGamelog(), VehicleLengthChanged(), and CrashLog::WriteSavegame().