OpenTTD Source: src/saveload/compat/economy_sl_compat.h Source File

OpenTTD Source 13.2.1

economy_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_ECONOMY_H
11 #define SAVELOAD_COMPAT_ECONOMY_H
12
13 #include "../saveload.h"
14
16 const SaveLoadCompat _economy_sl_compat[] = {
17 SLC_NULL(4, SL_MIN_VERSION, SLV_65),
18 SLC_NULL(8, SLV_65, SLV_144),
19 SLC_VAR("old_max_loan_unround"),
20 SLC_VAR("old_max_loan_unround_fract"),
21 SLC_VAR("inflation_prices"),
22 SLC_VAR("inflation_payment"),
23 SLC_VAR("fluct"),
24 SLC_VAR("interest_rate"),
25 SLC_VAR("infl_amount"),
26 SLC_VAR("infl_amount_pr"),
27 SLC_VAR("industry_daily_change_counter"),
28 };
29
31 const SaveLoadCompat _cargopayment_sl_compat[] = {
32 SLC_VAR("front"),
33 SLC_VAR("route_profit"),
34 SLC_VAR("visual_profit"),
35 SLC_VAR("visual_transfer"),
36 };
37
38 #endif /* SAVELOAD_COMPAT_ECONOMY_H */
_cargopayment_sl_compat
const SaveLoadCompat _cargopayment_sl_compat[]
Original field order for _cargopayment_desc.
Definition: economy_sl_compat.h:31
SLV_65
@ SLV_65
65 10210
Definition: saveload.h:125
SLV_144
@ SLV_144
144 20334
Definition: saveload.h:219
SLC_VAR
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1011
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
_economy_sl_compat
const SaveLoadCompat _economy_sl_compat[]
Original field order for _economy_desc.
Definition: economy_sl_compat.h:16
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1019
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:680