OpenTTD Source  14.0-beta1
station_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_STATION_H
11 #define SAVELOAD_COMPAT_STATION_H
12 
13 #include "../saveload.h"
14 
17  SLC_VAR("xy"),
19  SLC_VAR("status"),
23  SLC_VAR("next"),
26  SLC_NULL(1, SLV_25, SLV_26),
27 };
28 
31  SLC_VAR("grfid"),
32  SLC_VAR("localidx"),
33 };
34 
37  SLC_VAR("grfid"),
38  SLC_VAR("localidx"),
39 };
40 
43  SLC_VAR("first"),
44  SLC_VAR("second"),
45 };
46 
49  SLC_VAR("source"),
50  SLC_VAR("via"),
51  SLC_VAR("share"),
52  SLC_VAR("restricted"),
53 };
54 
57  SLC_VAR("waiting_acceptance"),
58  SLC_VAR("status"),
59  SLC_NULL(2, SLV_51, SLV_68),
60  SLC_VAR("time_since_pickup"),
61  SLC_VAR("rating"),
62  SLC_VAR("cargo_source"),
63  SLC_VAR("cargo_source_xy"),
64  SLC_VAR("cargo_days"),
65  SLC_VAR("last_speed"),
66  SLC_VAR("last_age"),
67  SLC_VAR("cargo_feeder_share"),
68  SLC_VAR("amount_fract"),
69  SLC_VAR("packets"),
70  SLC_VAR("old_num_dests"),
71  SLC_VAR("cargo.reserved_count"),
72  SLC_VAR("link_graph"),
73  SLC_VAR("node"),
74  SLC_VAR("old_num_flows"),
75  SLC_VAR("max_waiting_cargo"),
76  SLC_VAR("flow"),
77  SLC_VAR("cargo"),
78 };
79 
82  SLC_VAR("xy"),
83  SLC_VAR("town"),
84  SLC_VAR("string_id"),
85  SLC_VAR("name"),
86  SLC_VAR("delete_ctr"),
87  SLC_VAR("owner"),
88  SLC_VAR("facilities"),
89  SLC_VAR("build_date"),
90  SLC_VAR("random_bits"),
91  SLC_VAR("waiting_triggers"),
92  SLC_VAR("num_specs"),
93 };
94 
97  SLC_VAR("base"),
98  SLC_VAR("train_station.tile"),
99  SLC_VAR("train_station.w"),
100  SLC_VAR("train_station.h"),
101  SLC_VAR("bus_stops"),
102  SLC_VAR("truck_stops"),
104  SLC_VAR("ship_station.tile"),
105  SLC_VAR("ship_station.w"),
106  SLC_VAR("ship_station.h"),
107  SLC_VAR("docking_station.tile"),
108  SLC_VAR("docking_station.w"),
109  SLC_VAR("docking_station.h"),
110  SLC_VAR("airport.tile"),
111  SLC_VAR("airport.w"),
112  SLC_VAR("airport.h"),
113  SLC_VAR("airport.type"),
114  SLC_VAR("airport.layout"),
115  SLC_VAR("airport.flags"),
116  SLC_VAR("airport.rotation"),
117  SLC_VAR("storage"),
118  SLC_VAR("airport.psa"),
119  SLC_VAR("indtype"),
120  SLC_VAR("time_since_load"),
121  SLC_VAR("time_since_unload"),
122  SLC_VAR("last_vehicle_type"),
123  SLC_VAR("had_vehicle_of_type"),
124  SLC_VAR("loading_vehicles"),
125  SLC_VAR("always_accepted"),
126  SLC_VAR("goods"),
127 };
128 
131  SLC_VAR("base"),
132  SLC_VAR("town_cn"),
133  SLC_VAR("train_station.tile"),
134  SLC_VAR("train_station.w"),
135  SLC_VAR("train_station.h"),
136 };
137 
140  SLC_VAR("facilities"),
141  SLC_VAR("normal"),
142  SLC_VAR("waypoint"),
143  SLC_VAR("speclist"),
144 };
145 
148  SLC_VAR("xy"),
150  SLC_VAR("train_station.tile"),
151  SLC_VAR("airport.tile"),
154  SLC_VAR("town"),
155  SLC_VAR("train_station.w"),
156  SLC_VAR("train_station.h"),
158  SLC_VAR("string_id"),
159  SLC_VAR("name"),
160  SLC_VAR("indtype"),
161  SLC_VAR("had_vehicle_of_type"),
162  SLC_VAR("time_since_load"),
163  SLC_VAR("time_since_unload"),
164  SLC_VAR("delete_ctr"),
165  SLC_VAR("owner"),
166  SLC_VAR("facilities"),
167  SLC_VAR("airport.type"),
170  SLC_VAR("airport.flags"),
172  SLC_VAR("last_vehicle_type"),
173  SLC_NULL(2, SLV_3, SLV_26),
174  SLC_VAR("build_date"),
175  SLC_VAR("bus_stops"),
176  SLC_VAR("truck_stops"),
177  SLC_VAR("random_bits"),
178  SLC_VAR("waiting_triggers"),
179  SLC_VAR("num_specs"),
180  SLC_VAR("loading_vehicles"),
182  SLC_VAR("goods"),
183  SLC_VAR("speclist"),
184 
185 };
186 
187 #endif /* SAVELOAD_COMPAT_STATION_H */
_station_base_sl_compat
const SaveLoadCompat _station_base_sl_compat[]
Original field order for SlStationBase.
Definition: station_sl_compat.h:81
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1184
SLV_5
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
Definition: saveload.h:43
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
SLV_51
@ SLV_51
51 8978
Definition: saveload.h:104
SLV_25
@ SLV_25
25 4259
Definition: saveload.h:73
_old_station_sl_compat
const SaveLoadCompat _old_station_sl_compat[]
Original field order for _old_station_desc.
Definition: station_sl_compat.h:147
SLV_6
@ SLV_6
6.0 1721 6.1 1768
Definition: saveload.h:46
SLV_26
@ SLV_26
26 4466
Definition: saveload.h:74
_station_cargo_sl_compat
const SaveLoadCompat _station_cargo_sl_compat[]
Original field order for SlStationCargo.
Definition: station_sl_compat.h:42
_station_spec_list_sl_compat
const SaveLoadCompat _station_spec_list_sl_compat[]
Original field order for SlStationSpecList.
Definition: station_sl_compat.h:30
_station_normal_sl_compat
const SaveLoadCompat _station_normal_sl_compat[]
Original field order for SlStationNormal.
Definition: station_sl_compat.h:96
SLV_MULTITILE_DOCKS
@ SLV_MULTITILE_DOCKS
216 PR#7380 Multiple docks per station.
Definition: saveload.h:303
SL_MAX_VERSION
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:379
_station_goods_sl_compat
const SaveLoadCompat _station_goods_sl_compat[]
Original field order for SlStationGoods.
Definition: station_sl_compat.h:56
SLV_4
@ SLV_4
4.0 1 4.1 122 0.3.3, 0.3.4 4.2 1222 0.3.5 4.3 1417 4.4 1426
Definition: saveload.h:37
_station_waypoint_sl_compat
const SaveLoadCompat _station_waypoint_sl_compat[]
Original field order for SlStationWaypoint.
Definition: station_sl_compat.h:130
SLV_45
@ SLV_45
45 8501
Definition: saveload.h:97
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1192
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:715
SLV_3
@ SLV_3
3.x lost
Definition: saveload.h:36
_roadstop_sl_compat
const SaveLoadCompat _roadstop_sl_compat[]
Original field order for _roadstop_desc.
Definition: station_sl_compat.h:16
_station_road_stop_spec_list_sl_compat
const SaveLoadCompat _station_road_stop_spec_list_sl_compat[]
Nominal field order for SlRoadStopSpecList.
Definition: station_sl_compat.h:36
SLV_2
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition: saveload.h:34
SLV_9
@ SLV_9
9.0 1909
Definition: saveload.h:50
SLV_68
@ SLV_68
68 10266
Definition: saveload.h:124
_station_sl_compat
const SaveLoadCompat _station_sl_compat[]
Original field order for _station_desc.
Definition: station_sl_compat.h:139
_station_flow_sl_compat
const SaveLoadCompat _station_flow_sl_compat[]
Original field order for SlStationFlow.
Definition: station_sl_compat.h:48