OpenTTD Source 20260704-master-gbf70c61fb8
vehicle_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_VEHICLE_H
11#define SAVELOAD_COMPAT_VEHICLE_H
12
13#include "../saveload.h"
14
17 SLC_VAR("subtype"),
18 SLC_VAR("next"),
19 SLC_VAR("name"),
20 SLC_VAR("unitnumber"),
21 SLC_VAR("owner"),
22 SLC_VAR("tile"),
23 SLC_VAR("dest_tile"),
24 SLC_VAR("x_pos"),
25 SLC_VAR("y_pos"),
26 SLC_VAR("z_pos"),
27 SLC_VAR("direction"),
29 SLC_VAR("spritenum"),
31 SLC_VAR("engine_type"),
33 SLC_VAR("cur_speed"),
34 SLC_VAR("subspeed"),
35 SLC_VAR("acceleration"),
36 SLC_VAR("motion_counter"),
37 SLC_VAR("progress"),
38 SLC_VAR("vehstatus"),
39 SLC_VAR("last_station_visited"),
40 SLC_VAR("last_loading_station"),
41 SLC_VAR("cargo_type"),
42 SLC_VAR("cargo_subtype"),
43 SLC_VAR("cargo_days"),
44 SLC_VAR("cargo_source"),
45 SLC_VAR("cargo_source_xy"),
46 SLC_VAR("cargo_cap"),
47 SLC_VAR("refit_cap"),
48 SLC_VAR("cargo_count"),
49 SLC_VAR("cargo.packets"),
50 SLC_VAR("cargo.action_counts"),
51 SLC_VAR("cargo_age_counter"),
52 SLC_VAR("day_counter"),
53 SLC_VAR("tick_counter"),
54 SLC_VAR("running_ticks"),
55 SLC_VAR("cur_implicit_order_index"),
56 SLC_VAR("cur_real_order_index"),
58 SLC_VAR("current_order.type"),
59 SLC_VAR("current_order.flags"),
60 SLC_VAR("current_order.dest"),
61 SLC_VAR("current_order.refit_cargo"),
63 SLC_VAR("current_order.wait_time"),
64 SLC_VAR("current_order.travel_time"),
65 SLC_VAR("current_order.max_speed"),
66 SLC_VAR("timetable_start"),
67 SLC_VAR("orders"),
68 SLC_VAR("age"),
69 SLC_VAR("max_age"),
70 SLC_VAR("date_of_last_service"),
71 SLC_VAR("service_interval"),
72 SLC_VAR("reliability"),
73 SLC_VAR("reliability_spd_dec"),
74 SLC_VAR("breakdown_ctr"),
75 SLC_VAR("breakdown_delay"),
76 SLC_VAR("breakdowns_since_last_service"),
77 SLC_VAR("breakdown_chance"),
78 SLC_VAR("build_year"),
79 SLC_VAR("load_unload_ticks"),
80 SLC_VAR("cargo_paid_for"),
81 SLC_VAR("vehicle_flags"),
82 SLC_VAR("profit_this_year"),
83 SLC_VAR("profit_last_year"),
84 SLC_VAR("cargo_feeder_share"),
86 SLC_VAR("value"),
87 SLC_VAR("random_bits"),
88 SLC_VAR("waiting_triggers"),
89 SLC_VAR("next_shared"),
92 SLC_VAR("group_id"),
93 SLC_VAR("current_order_time"),
94 SLC_VAR("lateness_counter"),
96};
97
112
131
140
143 SLC_VAR("common"),
144 SLC_VAR("crashed_counter"),
145 SLC_VAR("pos"),
146 SLC_VAR("targetairport"),
147 SLC_VAR("state"),
148 SLC_VAR("previous_pos"),
149 SLC_VAR("last_direction"),
150 SLC_VAR("number_consecutive_turns"),
151 SLC_VAR("turn_counter"),
152 SLC_VAR("flags"),
154};
155
158 SLC_VAR("subtype"),
159 SLC_VAR("tile"),
160 SLC_VAR("x_pos"),
161 SLC_VAR("y_pos"),
162 SLC_VAR("z_pos"),
163 SLC_VAR("sprite_cache.sprite_seq.seq[0].sprite"),
165 SLC_VAR("progress"),
166 SLC_VAR("vehstatus"),
167 SLC_VAR("animation_state"),
168 SLC_VAR("animation_substate"),
169 SLC_VAR("spritenum"),
171};
172
175 SLC_VAR("next"),
176 SLC_VAR("subtype"),
177 SLC_VAR("tile"),
178 SLC_VAR("dest_tile"),
179 SLC_VAR("x_pos"),
180 SLC_VAR("y_pos"),
181 SLC_VAR("z_pos"),
182 SLC_VAR("direction"),
184 SLC_VAR("owner"),
185 SLC_VAR("vehstatus"),
186 SLC_VAR("current_order.dest"),
187 SLC_VAR("sprite_cache.sprite_seq.seq[0].sprite"),
188 SLC_VAR("age"),
189 SLC_VAR("tick_counter"),
190 SLC_VAR("image_override"),
191 SLC_VAR("big_ufo_destroyer_target"),
192 SLC_VAR("flags"),
194};
195
198 SLC_VAR("type"),
199 SLC_VAR("train"),
200 SLC_VAR("roadveh"),
201 SLC_VAR("ship"),
202 SLC_VAR("aircraft"),
203 SLC_VAR("effect"),
204 SLC_VAR("disaster"),
205};
206
207#endif /* SAVELOAD_COMPAT_VEHICLE_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:1258
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1266
@ GoalProgressPlaneAcceleration
Saveload version: 182, SVN revision: 25115, r25259, r25296 Goal status and plane acceleration fixes.
Definition saveload.h:262
@ OrderList
Saveload version: 105, SVN revision: 14803 Create separate order list objects for maintaining orders...
Definition saveload.h:170
@ VehicleCurrencyStationChanges
Saveload version: 2.0, release: 0.3.0 Adding vehicle state, larger currency size for statistics,...
Definition saveload.h:34
@ MaximumDepotPenalty
Saveload version: 131, SVN revision: 18481 Add configurable maximum pathfinder penalty for finding a...
Definition saveload.h:201
@ MoreCargoPackets
Saveload version: 69, SVN revision: 10319 Allow more than ~65k cargo packets.
Definition saveload.h:126
@ IndustryManagement
Saveload version: 152, SVN revision: 21171 Manage the amount of industries that ought to be spawned ...
Definition saveload.h:226
@ RefitOrders
Saveload version: 36, SVN revision: 6624 Vehicles can be refitted as part of an order.
Definition saveload.h:87
@ NewGRFPalette
Saveload version: 101, SVN revision: 14233 Store palette used by each of the NewGRFs.
Definition saveload.h:165
@ MultipleRoadStops
Saveload version: 6.0, SVN revision: 1721 Multi tile road stops, and some map size related fixes.
Definition saveload.h:47
@ VehicleGroups
Saveload version: 60, SVN revision: 9874 Arbitrary grouping, by the player, of vehicles.
Definition saveload.h:116
@ EngineMultiRailtype
Saveload version: 362, GitHub pull request: 14357, release: 15.0 Train engines can have multiple rai...
Definition saveload.h:414
@ MinVersion
First savegame version.
Definition saveload.h:31
@ VeryLowTownIndustryNumber
Saveload version: 58, SVN revision: 9762 Difficulty settings for very low number of industries and t...
Definition saveload.h:113
@ FeederShare
Saveload version: 51, SVN revision: 8978 Rewrite of transfers to retain knowledge about the already ...
Definition saveload.h:105
@ ReorderUnmovableRemoveReserved
Saveload version: 144, SVN revision: 20334 Reorder map bits of unmovable tiles and remove unused res...
Definition saveload.h:216
@ CargoPackets
Saveload version: 68, SVN revision: 10266 Account for individual units of cargo, i....
Definition saveload.h:125
@ NoMultiheadReference
Saveload version: 20, SVN revision: 3403 Remove reference from one multihead to the other one.
Definition saveload.h:68
@ TownLayout
Saveload version: 59, SVN revision: 9779 More layout options for towns.
Definition saveload.h:114
SaveLoad information for backwards compatibility.
Definition saveload.h:803
const SaveLoadCompat _vehicle_train_sl_compat[]
Original field order for SlVehicleTrain.
const SaveLoadCompat _vehicle_disaster_sl_compat[]
Original field order for SlVehicleDisaster.
const SaveLoadCompat _vehicle_effect_sl_compat[]
Original field order for SlVehicleEffect.
const SaveLoadCompat _vehicle_ship_sl_compat[]
Original field order for SlVehicleShip.
const SaveLoadCompat _vehicle_sl_compat[]
Original field order for vehicle_desc.
const SaveLoadCompat _vehicle_roadveh_sl_compat[]
Original field order for SlVehicleRoadVeh.
const SaveLoadCompat _vehicle_common_sl_compat[]
Original field order for SlVehicleCommon.
const SaveLoadCompat _vehicle_aircraft_sl_compat[]
Original field order for SlVehicleAircraft.