OpenTTD Source 20260711-master-g3fb3006dff
engine_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_ENGINE_H
11#define SAVELOAD_COMPAT_ENGINE_H
12
13#include "../saveload.h"
14
17 SLC_VAR("intro_date"),
18 SLC_VAR("age"),
19 SLC_VAR("reliability"),
20 SLC_VAR("reliability_spd_dec"),
21 SLC_VAR("reliability_start"),
22 SLC_VAR("reliability_max"),
23 SLC_VAR("reliability_final"),
24 SLC_VAR("duration_phase_1"),
25 SLC_VAR("duration_phase_2"),
26 SLC_VAR("duration_phase_3"),
28 SLC_VAR("flags"),
30 SLC_VAR("preview_asked"),
31 SLC_VAR("preview_company"),
32 SLC_VAR("preview_wait"),
34 SLC_VAR("company_avail"),
35 SLC_VAR("company_hidden"),
36 SLC_VAR("name"),
38};
39
42 SLC_VAR("grfid"),
43 SLC_VAR("internal_id"),
44 SLC_VAR("type"),
45 SLC_VAR("substitute_id"),
46};
47
48#endif /* SAVELOAD_COMPAT_ENGINE_H */
const SaveLoadCompat _engine_id_mapping_sl_compat[]
Original field order for _engine_id_mapping_desc.
const SaveLoadCompat _engine_sl_compat[]
Original field order for _engine_desc.
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
@ CountPaidForCargo
Saveload version: 45, SVN revision: 8501 Count the amount of cargo that was paid for.
Definition saveload.h:98
@ VehicleCurrencyStationChanges
Saveload version: 2.0, release: 0.3.0 Adding vehicle state, larger currency size for statistics,...
Definition saveload.h:34
@ RobustEnginePreview
Saveload version: 179, SVN revision: 24810 Make engine preview offers robust when company ranking ch...
Definition saveload.h:258
@ CargoPayments
Saveload version: 121, SVN revision: 16694 Perform payment of cargo after unloading.
Definition saveload.h:189
@ MinVersion
First savegame version.
Definition saveload.h:31
@ ReorderUnmovableRemoveReserved
Saveload version: 144, SVN revision: 20334 Reorder map bits of unmovable tiles and remove unused res...
Definition saveload.h:216
SaveLoad information for backwards compatibility.
Definition saveload.h:807