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

OpenTTD Source 12.2

engine_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 <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef SAVELOAD_COMPAT_ENGINE_H
11 #define SAVELOAD_COMPAT_ENGINE_H
12
13 #include "../saveload.h"
14
16 const SaveLoadCompat _engine_sl_compat[] = {
17 SLC_VAR("intro_date"),
18 SLC_VAR("age"),
19 SLC_VAR("reliability"),
20 SLC_VAR("reliability_spd_dec"),
21 SLC_VAR("reliability_start"),
22 SLC_VAR("reliability_max"),
23 SLC_VAR("reliability_final"),
24 SLC_VAR("duration_phase_1"),
25 SLC_VAR("duration_phase_2"),
26 SLC_VAR("duration_phase_3"),
27 SLC_NULL(1, SL_MIN_VERSION, SLV_121),
28 SLC_VAR("flags"),
29 SLC_NULL(1, SL_MIN_VERSION, SLV_179),
30 SLC_VAR("preview_asked"),
31 SLC_VAR("preview_company"),
32 SLC_VAR("preview_wait"),
33 SLC_NULL(1, SL_MIN_VERSION, SLV_45),
34 SLC_VAR("company_avail"),
35 SLC_VAR("company_hidden"),
36 SLC_VAR("name"),
37 SLC_NULL(16, SLV_2, SLV_144),
38 };
39
41 const SaveLoadCompat _engine_id_mapping_sl_compat[] = {
42 SLC_VAR("grfid"),
43 SLC_VAR("internal_id"),
44 SLC_VAR("type"),
45 SLC_VAR("substitute_id"),
46 };
47
48 #endif /* SAVELOAD_COMPAT_ENGINE_H */
SLV_144
@ SLV_144
144 20334
Definition: saveload.h:219
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1007
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
SLV_179
@ SLV_179
179 24810
Definition: saveload.h:261
_engine_sl_compat
const SaveLoadCompat _engine_sl_compat[]
Original field order for _engine_desc.
Definition: engine_sl_compat.h:16
SLV_45
@ SLV_45
45 8501
Definition: saveload.h:101
SLV_2
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition: saveload.h:38
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1015
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:676
_engine_id_mapping_sl_compat
const SaveLoadCompat _engine_id_mapping_sl_compat[]
Original field order for _engine_id_mapping_desc.
Definition: engine_sl_compat.h:41
SLV_121
@ SLV_121
121 16694
Definition: saveload.h:192