OpenTTD Source  20240919-master-gdf0233f4c2
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 
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 
31  SLC_VAR("first"),
32 };
33 
36  SLC_VAR("user"),
37  SLC_VAR("tile"),
38  SLC_VAR("group"),
39  SLC_VAR("service_interval"),
40  SLC_VAR("name"),
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:1207
SLV_5
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
Definition: saveload.h:43
_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:31
SLV_192
@ SLV_192
192 26700 FS#6066 Fix saving of order backups
Definition: saveload.h:274
_orderlist_sl_compat
const SaveLoadCompat _orderlist_sl_compat[]
Original field order for _orderlist_desc.
Definition: order_sl_compat.h:30
SLV_36
@ SLV_36
36 6624
Definition: saveload.h:86
_order_backup_sl_compat
const SaveLoadCompat _order_backup_sl_compat[]
Original field order for _order_backup_desc.
Definition: order_sl_compat.h:35
SLV_182
@ SLV_182
182 25115 FS#5492, r25259, r25296 Goal status
Definition: saveload.h:261
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1215
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:727