OpenTTD Source  20240919-master-gdf0233f4c2
gamelog.h File Reference
#include "newgrf_config.h"

Go to the source code of this file.

Data Structures

class  Gamelog
 

Enumerations

enum  GamelogActionType : uint8_t {
  GLAT_START, GLAT_LOAD, GLAT_GRF, GLAT_CHEAT,
  GLAT_SETTING, GLAT_GRFBUG, GLAT_EMERGENCY, GLAT_END,
  GLAT_NONE = 0xFF
}
 The actions we log. More...
 
enum  GamelogChangeType : uint8_t {
  GLCT_MODE, GLCT_REVISION, GLCT_OLDVER, GLCT_SETTING,
  GLCT_GRFADD, GLCT_GRFREM, GLCT_GRFCOMPAT, GLCT_GRFPARAM,
  GLCT_GRFMOVE, GLCT_GRFBUG, GLCT_EMERGENCY, GLCT_END,
  GLCT_NONE = 0xFF
}
 Type of logged change. More...
 

Variables

Gamelog _gamelog
 Gamelog instance.
 

Detailed Description

Functions to be called to log fundamental changes to the game

Definition in file gamelog.h.

Enumeration Type Documentation

◆ GamelogActionType

enum GamelogActionType : uint8_t

The actions we log.

Enumerator
GLAT_START 

Game created.

GLAT_LOAD 

Game loaded.

GLAT_GRF 

GRF changed.

GLAT_CHEAT 

Cheat was used.

GLAT_SETTING 

Setting changed.

GLAT_GRFBUG 

GRF bug was triggered.

GLAT_EMERGENCY 

Emergency savegame.

GLAT_END 

So we know how many GLATs are there.

GLAT_NONE 

No logging active; in savegames, end of list.

Definition at line 16 of file gamelog.h.

◆ GamelogChangeType

enum GamelogChangeType : uint8_t

Type of logged change.

Enumerator
GLCT_MODE 

Scenario editor x Game, different landscape.

GLCT_REVISION 

Changed game revision string.

GLCT_OLDVER 

Loaded from savegame without logged data.

GLCT_SETTING 

Non-networksafe setting value changed.

GLCT_GRFADD 

Removed GRF.

GLCT_GRFREM 

Added GRF.

GLCT_GRFCOMPAT 

Loading compatible GRF.

GLCT_GRFPARAM 

GRF parameter changed.

GLCT_GRFMOVE 

GRF order changed.

GLCT_GRFBUG 

GRF bug triggered.

GLCT_EMERGENCY 

Emergency savegame.

GLCT_END 

So we know how many GLCTs are there.

GLCT_NONE 

In savegames, end of list.

Definition at line 29 of file gamelog.h.