|
@@ -9,13 +9,12 @@
|
|
|
|
|
|
/** @file gamelog_internal.h Declaration shared among gamelog.cpp and saveload/gamelog_sl.cpp */
|
|
|
|
|
|
#ifndef GAMELOG_INTERNAL_H
|
|
|
#define GAMELOG_INTERNAL_H
|
|
|
|
|
|
#include "network/core/config.h"
|
|
|
#include "gamelog.h"
|
|
|
|
|
|
/** Type of logged change */
|
|
|
enum GamelogChangeType {
|
|
|
GLCT_MODE, ///< Scenario editor x Game, different landscape
|
|
|
GLCT_REVISION, ///< Changed game revision string
|
|
@@ -30,22 +29,24 @@ enum GamelogChangeType {
|
|
|
GLCT_EMERGENCY, ///< Emergency savegame
|
|
|
GLCT_END, ///< So we know how many GLCTs are there
|
|
|
GLCT_NONE = 0xFF, ///< In savegames, end of list
|
|
|
};
|
|
|
|
|
|
|
|
|
static const uint GAMELOG_REVISION_LENGTH = 15;
|
|
|
|
|
|
/** Contains information about one logged change */
|
|
|
struct LoggedChange {
|
|
|
GamelogChangeType ct; ///< Type of change logged in this struct
|
|
|
union {
|
|
|
struct {
|
|
|
byte mode; ///< new game mode - Editor x Game
|
|
|
byte landscape; ///< landscape (temperate, arctic, ...)
|
|
|
} mode;
|
|
|
struct {
|
|
|
char text[NETWORK_REVISION_LENGTH]; ///< revision string, _openttd_revision
|
|
|
char text[GAMELOG_REVISION_LENGTH]; ///< revision string, _openttd_revision
|
|
|
uint32 newgrf; ///< _openttd_newgrf_version
|
|
|
uint16 slver; ///< _sl_version
|
|
|
byte modified; ///< _openttd_revision_modified
|
|
|
} revision;
|
|
|
struct {
|
|
|
uint32 type; ///< type of savegame, @see SavegameType
|