Update: Translations from eints
[openttd-github.git] / src / saveload / compat / station_sl_compat.h
blob1c24a8d5d92204aa225c0e1e797d3d27a72b6546
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 */
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[] = {
17 SLC_VAR("xy"),
18 SLC_NULL(1, SL_MIN_VERSION, SLV_45),
19 SLC_VAR("status"),
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),
23 SLC_VAR("next"),
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[] = {
31 SLC_VAR("grfid"),
32 SLC_VAR("localidx"),
35 /** Original field order for SlStationCargo. */
36 const SaveLoadCompat _station_cargo_sl_compat[] = {
37 SLC_VAR("first"),
38 SLC_VAR("second"),
41 /** Original field order for SlStationFlow. */
42 const SaveLoadCompat _station_flow_sl_compat[] = {
43 SLC_VAR("source"),
44 SLC_VAR("via"),
45 SLC_VAR("share"),
46 SLC_VAR("restricted"),
49 /** Original field order for SlStationGoods. */
50 const SaveLoadCompat _station_goods_sl_compat[] = {
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"),
74 /** Original field order for SlStationBase. */
75 const SaveLoadCompat _station_base_sl_compat[] = {
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"),
89 /** Original field order for SlStationNormal. */
90 const SaveLoadCompat _station_normal_sl_compat[] = {
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"),
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"),
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"),
123 /** Original field order for SlStationWaypoint. */
124 const SaveLoadCompat _station_waypoint_sl_compat[] = {
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"),
132 /** Original field order for _station_desc. */
133 const SaveLoadCompat _station_sl_compat[] = {
134 SLC_VAR("facilities"),
135 SLC_VAR("normal"),
136 SLC_VAR("waypoint"),
137 SLC_VAR("speclist"),
140 /** Original field order for _old_station_desc. */
141 const SaveLoadCompat _old_station_sl_compat[] = {
142 SLC_VAR("xy"),
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),
148 SLC_VAR("town"),
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"),
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"),
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),
176 SLC_VAR("goods"),
177 SLC_VAR("speclist"),
181 #endif /* SAVELOAD_COMPAT_STATION_H */