OpenTTD Source: src/saveload/compat/game_sl_compat.h Source File

OpenTTD Source 15.0-RC2

game_sl_compat.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef SAVELOAD_COMPAT_GAME_H
11#define SAVELOAD_COMPAT_GAME_H
12
13#include "../saveload.h"
14
16 const SaveLoadCompat _game_script_sl_compat[] = {
17 SLC_VAR("name"),
18 SLC_VAR("settings"),
19 SLC_VAR("version"),
20 SLC_NULL(1, SL_MIN_VERSION, SLV_AI_LOCAL_CONFIG),
21};
22
24 const SaveLoadCompat _game_language_string_sl_compat[] = {
25 SLC_VAR("string"),
26};
27
29 const SaveLoadCompat _game_language_sl_compat[] = {
30 SLC_VAR("language"),
31 SLC_VAR("count"),
32 SLC_VAR("strings"),
33};
34
35#endif /* SAVELOAD_COMPAT_GAME_H */
_game_language_string_sl_compat
const SaveLoadCompat _game_language_string_sl_compat[]
Original field order for SlGameLanguageString.
Definition game_sl_compat.h:24
_game_language_sl_compat
const SaveLoadCompat _game_language_sl_compat[]
Original field order for _game_language_desc.
Definition game_sl_compat.h:29
_game_script_sl_compat
const SaveLoadCompat _game_script_sl_compat[]
Original field order for _game_script_desc.
Definition game_sl_compat.h:16
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1262
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1270
SLV_AI_LOCAL_CONFIG
@ SLV_AI_LOCAL_CONFIG
332 PR#12003 Config of running AI is stored inside Company.
Definition saveload.h:378
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition saveload.h:752