OpenTTD Source 20260711-master-g3fb3006dff
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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef SAVELOAD_COMPAT_STATION_H
11#define SAVELOAD_COMPAT_STATION_H
12
13#include "../saveload.h"
14
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"),
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"),
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 */
Functions/types related to saving and loading games.
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1262
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1270
@ LargerTownCargoStatistics
Saveload version: 9.0, SVN revision: 1909 Increase size of passenger/mail production of this and pre...
Definition saveload.h:51
@ ImproveMultistop
Saveload version: 25, SVN revision: 4259 Improve the behaviour of RVs going to road stops.
Definition saveload.h:74
@ CountPaidForCargo
Saveload version: 45, SVN revision: 8501 Count the amount of cargo that was paid for.
Definition saveload.h:98
@ LastVehicleType
Saveload version: 26, SVN revision: 4466 Store the last vehicle type at stations instead of the vehi...
Definition saveload.h:75
@ VehicleCurrencyStationChanges
Saveload version: 2.0, release: 0.3.0 Adding vehicle state, larger currency size for statistics,...
Definition saveload.h:34
@ TownTolerancePauseMode
Saveload version: 4.0, SVN revision: 1 Town council tolerance and pause mode.
Definition saveload.h:38
@ BigMap
Saveload version: 5.0, SVN revision: 1429 Making maps a different size than 256x256.
Definition saveload.h:44
@ MultitileDocks
Saveload version: 216, GitHub pull request: 7380 Multiple docks per station.
Definition saveload.h:303
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:47
@ MinVersion
First savegame version.
Definition saveload.h:31
@ FeederShare
Saveload version: 51, SVN revision: 8978 Rewrite of transfers to retain knowledge about the already ...
Definition saveload.h:105
@ BiggerStationVariables
Saveload version: 3.0 Increase size of airport blocks/station build date.
Definition saveload.h:37
@ CargoPackets
Saveload version: 68, SVN revision: 10266 Account for individual units of cargo, i....
Definition saveload.h:125
@ MaxVersion
Highest possible saveload version.
Definition saveload.h:421
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:807