OpenTTD Source  20241121-master-g67a0fccfad
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("first"),
38  SLC_VAR("second"),
39 };
40 
43  SLC_VAR("source"),
44  SLC_VAR("via"),
45  SLC_VAR("share"),
46  SLC_VAR("restricted"),
47 };
48 
51  SLC_VAR("waiting_acceptance"),
52  SLC_VAR("status"),
53  SLC_NULL(2, SLV_51, SLV_68),
54  SLC_VAR("time_since_pickup"),
55  SLC_VAR("rating"),
56  SLC_VAR("cargo_source"),
57  SLC_VAR("cargo_source_xy"),
58  SLC_VAR("cargo_days"),
59  SLC_VAR("last_speed"),
60  SLC_VAR("last_age"),
61  SLC_VAR("cargo_feeder_share"),
62  SLC_VAR("amount_fract"),
63  SLC_VAR("packets"),
64  SLC_VAR("old_num_dests"),
65  SLC_VAR("cargo.reserved_count"),
66  SLC_VAR("link_graph"),
67  SLC_VAR("node"),
68  SLC_VAR("old_num_flows"),
69  SLC_VAR("max_waiting_cargo"),
70  SLC_VAR("flow"),
71  SLC_VAR("cargo"),
72 };
73 
76  SLC_VAR("xy"),
77  SLC_VAR("town"),
78  SLC_VAR("string_id"),
79  SLC_VAR("name"),
80  SLC_VAR("delete_ctr"),
81  SLC_VAR("owner"),
82  SLC_VAR("facilities"),
83  SLC_VAR("build_date"),
84  SLC_VAR("random_bits"),
85  SLC_VAR("waiting_triggers"),
86  SLC_VAR("num_specs"),
87 };
88 
91  SLC_VAR("base"),
92  SLC_VAR("train_station.tile"),
93  SLC_VAR("train_station.w"),
94  SLC_VAR("train_station.h"),
95  SLC_VAR("bus_stops"),
96  SLC_VAR("truck_stops"),
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"),
111  SLC_VAR("storage"),
112  SLC_VAR("airport.psa"),
113  SLC_VAR("indtype"),
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"),
120  SLC_VAR("goods"),
121 };
122 
125  SLC_VAR("base"),
126  SLC_VAR("town_cn"),
127  SLC_VAR("train_station.tile"),
128  SLC_VAR("train_station.w"),
129  SLC_VAR("train_station.h"),
130 };
131 
134  SLC_VAR("facilities"),
135  SLC_VAR("normal"),
136  SLC_VAR("waypoint"),
137  SLC_VAR("speclist"),
138 };
139 
142  SLC_VAR("xy"),
144  SLC_VAR("train_station.tile"),
145  SLC_VAR("airport.tile"),
148  SLC_VAR("town"),
149  SLC_VAR("train_station.w"),
150  SLC_VAR("train_station.h"),
152  SLC_VAR("string_id"),
153  SLC_VAR("name"),
154  SLC_VAR("indtype"),
155  SLC_VAR("had_vehicle_of_type"),
156  SLC_VAR("time_since_load"),
157  SLC_VAR("time_since_unload"),
158  SLC_VAR("delete_ctr"),
159  SLC_VAR("owner"),
160  SLC_VAR("facilities"),
161  SLC_VAR("airport.type"),
164  SLC_VAR("airport.flags"),
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"),
176  SLC_VAR("goods"),
177  SLC_VAR("speclist"),
178 
179 };
180 
181 #endif /* SAVELOAD_COMPAT_STATION_H */
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1223
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1231
@ SLV_25
25 4259
Definition: saveload.h:73
@ SLV_26
26 4466
Definition: saveload.h:74
@ 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
@ SLV_6
6.0 1721 6.1 1768
Definition: saveload.h:46
@ SLV_MULTITILE_DOCKS
216 PR#7380 Multiple docks per station.
Definition: saveload.h:303
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:397
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
@ SLV_3
3.x lost
Definition: saveload.h:36
@ SLV_51
51 8978
Definition: saveload.h:104
@ SLV_68
68 10266
Definition: saveload.h:124
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition: saveload.h:34
@ SLV_45
45 8501
Definition: saveload.h:97
@ SLV_5
5.0 1429 5.1 1440 5.2 1525 0.3.6
Definition: saveload.h:43
@ SLV_9
9.0 1909
Definition: saveload.h:50
const SaveLoadCompat _station_base_sl_compat[]
Original field order for SlStationBase.
const SaveLoadCompat _roadstop_sl_compat[]
Original field order for _roadstop_desc.
const SaveLoadCompat _station_sl_compat[]
Original field order for _station_desc.
const SaveLoadCompat _station_cargo_sl_compat[]
Original field order for SlStationCargo.
const SaveLoadCompat _station_goods_sl_compat[]
Original field order for SlStationGoods.
const SaveLoadCompat _station_flow_sl_compat[]
Original field order for SlStationFlow.
const SaveLoadCompat _station_waypoint_sl_compat[]
Original field order for SlStationWaypoint.
const SaveLoadCompat _station_normal_sl_compat[]
Original field order for SlStationNormal.
const SaveLoadCompat _old_station_sl_compat[]
Original field order for _old_station_desc.
const SaveLoadCompat _station_spec_list_sl_compat[]
Original field order for SlStationSpecList.
SaveLoad information for backwards compatibility.
Definition: saveload.h:733