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

OpenTTD Source 13.1

order_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_ORDER_H
11 #define SAVELOAD_COMPAT_ORDER_H
12
13 #include "../saveload.h"
14
16 const SaveLoadCompat _order_sl_compat[] = {
17 SLC_VAR("type"),
18 SLC_VAR("flags"),
19 SLC_VAR("dest"),
20 SLC_VAR("next"),
21 SLC_VAR("refit_cargo"),
22 SLC_NULL(1, SLV_36, SLV_182),
23 SLC_VAR("wait_time"),
24 SLC_VAR("travel_time"),
25 SLC_VAR("max_speed"),
26 SLC_NULL(10, SLV_5, SLV_36),
27 };
28
30 const SaveLoadCompat _orderlist_sl_compat[] = {
31 SLC_VAR("first"),
32 };
33
35 const SaveLoadCompat _order_backup_sl_compat[] = {
36 SLC_VAR("user"),
37 SLC_VAR("tile"),
38 SLC_VAR("group"),
39 SLC_VAR("service_interval"),
40 SLC_VAR("name"),
41 SLC_NULL(2, SL_MIN_VERSION, SLV_192),
42 SLC_VAR("clone"),
43 SLC_VAR("cur_real_order_index"),
44 SLC_VAR("cur_implicit_order_index"),
45 SLC_VAR("current_order_time"),
46 SLC_VAR("lateness_counter"),
47 SLC_VAR("timetable_start"),
48 SLC_VAR("vehicle_flags"),
49 SLC_VAR("orders"),
50 };
51
52 #endif /* SAVELOAD_COMPAT_ORDER_H */
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1011
_order_sl_compat
const SaveLoadCompat _order_sl_compat[]
Original field order for _order_desc.
Definition: order_sl_compat.h:16
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
_orderlist_sl_compat
const SaveLoadCompat _orderlist_sl_compat[]
Original field order for _orderlist_desc.
Definition: order_sl_compat.h:30
_order_backup_sl_compat
const SaveLoadCompat _order_backup_sl_compat[]
Original field order for _order_backup_desc.
Definition: order_sl_compat.h:35
SLV_5
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
Definition: saveload.h:47
SLV_182
@ SLV_182
182 25115 FS#5492, r25259, r25296 Goal status
Definition: saveload.h:265
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1019
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:680
SLV_36
@ SLV_36
36 6624
Definition: saveload.h:90
SLV_192
@ SLV_192
192 26700 FS#6066 Fix saving of order backups
Definition: saveload.h:278