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/>.
8 /** @file station_sl_compat.h Loading of station chunks before table headers were added. */
10 #ifndef SAVELOAD_COMPAT_STATION_H
11 #define SAVELOAD_COMPAT_STATION_H
13 #include "../saveload.h"
15 /** Original field order for _roadstop_desc. */
16 const SaveLoadCompat _roadstop_sl_compat
[] = {
18 SLC_NULL(1, SL_MIN_VERSION
, SLV_45
),
20 SLC_NULL(4, SL_MIN_VERSION
, SLV_9
),
21 SLC_NULL(2, SL_MIN_VERSION
, SLV_45
),
22 SLC_NULL(1, SL_MIN_VERSION
, SLV_26
),
24 SLC_NULL(2, SL_MIN_VERSION
, SLV_45
),
25 SLC_NULL(4, SL_MIN_VERSION
, SLV_25
),
26 SLC_NULL(1, SLV_25
, SLV_26
),
29 /** Original field order for SlStationSpecList. */
30 const SaveLoadCompat _station_spec_list_sl_compat
[] = {
35 /** Original field order for SlStationCargo. */
36 const SaveLoadCompat _station_cargo_sl_compat
[] = {
41 /** Original field order for SlStationFlow. */
42 const SaveLoadCompat _station_flow_sl_compat
[] = {
46 SLC_VAR("restricted"),
49 /** Original field order for SlStationGoods. */
50 const SaveLoadCompat _station_goods_sl_compat
[] = {
51 SLC_VAR("waiting_acceptance"),
53 SLC_NULL(2, SLV_51
, SLV_68
),
54 SLC_VAR("time_since_pickup"),
56 SLC_VAR("cargo_source"),
57 SLC_VAR("cargo_source_xy"),
58 SLC_VAR("cargo_days"),
59 SLC_VAR("last_speed"),
61 SLC_VAR("cargo_feeder_share"),
62 SLC_VAR("amount_fract"),
64 SLC_VAR("old_num_dests"),
65 SLC_VAR("cargo.reserved_count"),
66 SLC_VAR("link_graph"),
68 SLC_VAR("old_num_flows"),
69 SLC_VAR("max_waiting_cargo"),
74 /** Original field order for SlStationBase. */
75 const SaveLoadCompat _station_base_sl_compat
[] = {
80 SLC_VAR("delete_ctr"),
82 SLC_VAR("facilities"),
83 SLC_VAR("build_date"),
84 SLC_VAR("random_bits"),
85 SLC_VAR("waiting_triggers"),
89 /** Original field order for SlStationNormal. */
90 const SaveLoadCompat _station_normal_sl_compat
[] = {
92 SLC_VAR("train_station.tile"),
93 SLC_VAR("train_station.w"),
94 SLC_VAR("train_station.h"),
96 SLC_VAR("truck_stops"),
97 SLC_NULL(4, SL_MIN_VERSION
, SLV_MULTITILE_DOCKS
),
98 SLC_VAR("ship_station.tile"),
99 SLC_VAR("ship_station.w"),
100 SLC_VAR("ship_station.h"),
101 SLC_VAR("docking_station.tile"),
102 SLC_VAR("docking_station.w"),
103 SLC_VAR("docking_station.h"),
104 SLC_VAR("airport.tile"),
105 SLC_VAR("airport.w"),
106 SLC_VAR("airport.h"),
107 SLC_VAR("airport.type"),
108 SLC_VAR("airport.layout"),
109 SLC_VAR("airport.flags"),
110 SLC_VAR("airport.rotation"),
112 SLC_VAR("airport.psa"),
114 SLC_VAR("time_since_load"),
115 SLC_VAR("time_since_unload"),
116 SLC_VAR("last_vehicle_type"),
117 SLC_VAR("had_vehicle_of_type"),
118 SLC_VAR("loading_vehicles"),
119 SLC_VAR("always_accepted"),
123 /** Original field order for SlStationWaypoint. */
124 const SaveLoadCompat _station_waypoint_sl_compat
[] = {
127 SLC_VAR("train_station.tile"),
128 SLC_VAR("train_station.w"),
129 SLC_VAR("train_station.h"),
132 /** Original field order for _station_desc. */
133 const SaveLoadCompat _station_sl_compat
[] = {
134 SLC_VAR("facilities"),
140 /** Original field order for _old_station_desc. */
141 const SaveLoadCompat _old_station_sl_compat
[] = {
143 SLC_NULL(4, SL_MIN_VERSION
, SLV_6
),
144 SLC_VAR("train_station.tile"),
145 SLC_VAR("airport.tile"),
146 SLC_NULL(2, SL_MIN_VERSION
, SLV_6
),
147 SLC_NULL(4, SLV_6
, SLV_MULTITILE_DOCKS
),
149 SLC_VAR("train_station.w"),
150 SLC_VAR("train_station.h"),
151 SLC_NULL(1, SL_MIN_VERSION
, SLV_4
),
152 SLC_VAR("string_id"),
155 SLC_VAR("had_vehicle_of_type"),
156 SLC_VAR("time_since_load"),
157 SLC_VAR("time_since_unload"),
158 SLC_VAR("delete_ctr"),
160 SLC_VAR("facilities"),
161 SLC_VAR("airport.type"),
162 SLC_NULL(2, SL_MIN_VERSION
, SLV_6
),
163 SLC_NULL(1, SL_MIN_VERSION
, SLV_5
),
164 SLC_VAR("airport.flags"),
165 SLC_NULL(2, SL_MIN_VERSION
, SLV_26
),
166 SLC_VAR("last_vehicle_type"),
167 SLC_NULL(2, SLV_3
, SLV_26
),
168 SLC_VAR("build_date"),
169 SLC_VAR("bus_stops"),
170 SLC_VAR("truck_stops"),
171 SLC_VAR("random_bits"),
172 SLC_VAR("waiting_triggers"),
173 SLC_VAR("num_specs"),
174 SLC_VAR("loading_vehicles"),
175 SLC_NULL(32, SLV_2
, SL_MAX_VERSION
),
181 #endif /* SAVELOAD_COMPAT_STATION_H */