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

OpenTTD Source 14.0-RC3

newgrf_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_NEWGRF_H
11 #define SAVELOAD_COMPAT_NEWGRF_H
12
13 #include "../saveload.h"
14
16 const SaveLoadCompat _newgrf_mapping_sl_compat[] = {
17 SLC_VAR("grfid"),
18 SLC_VAR("entity_id"),
19 SLC_VAR("substitute_id"),
20 };
21
23 const SaveLoadCompat _grfconfig_sl_compat[] = {
24 SLC_VAR("filename"),
25 SLC_VAR("ident.grfid"),
26 SLC_VAR("ident.md5sum"),
27 SLC_VAR("version"),
28 SLC_VAR("param"),
29 SLC_VAR("num_params"),
30 SLC_VAR("palette"),
31 };
32
33 #endif /* SAVELOAD_COMPAT_NEWGRF_H */
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1188
_newgrf_mapping_sl_compat
const SaveLoadCompat _newgrf_mapping_sl_compat[]
Original field order for _newgrf_mapping_desc.
Definition: newgrf_sl_compat.h:16
_grfconfig_sl_compat
const SaveLoadCompat _grfconfig_sl_compat[]
Original field order for _newgrf_desc.
Definition: newgrf_sl_compat.h:23
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:718