Codechange: set VLI.index through accessor function
[openttd-github.git] / src / saveload / compat / town_sl_compat.h
blob34a4141028f2a792178ca622b5baac8e1f263a5d
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 town_sl_compat.h Loading of town chunks before table headers were added. */
10 #ifndef SAVELOAD_COMPAT_TOWN_H
11 #define SAVELOAD_COMPAT_TOWN_H
13 #include "../saveload.h"
15 /** Original field order for SlTownSupplied. */
16 const SaveLoadCompat _town_supplied_sl_compat[] = {
17 SLC_VAR("old_max"),
18 SLC_VAR("new_max"),
19 SLC_VAR("old_act"),
20 SLC_VAR("new_act"),
23 /** Original field order for SlTownReceived. */
24 const SaveLoadCompat _town_received_sl_compat[] = {
25 SLC_VAR("old_max"),
26 SLC_VAR("new_max"),
27 SLC_VAR("old_act"),
28 SLC_VAR("new_act"),
31 /** Original field order for SlTownAcceptanceMatrix. */
32 const SaveLoadCompat _town_acceptance_matrix_sl_compat[] = {
33 SLC_VAR("area.tile"),
34 SLC_VAR("area.w"),
35 SLC_VAR("area.h"),
38 /** Original field order for town_desc. */
39 const SaveLoadCompat _town_sl_compat[] = {
40 SLC_VAR("xy"),
41 SLC_NULL(2, SL_MIN_VERSION, SLV_3),
42 SLC_NULL(4, SLV_3, SLV_85),
43 SLC_NULL(2, SL_MIN_VERSION, SLV_92),
44 SLC_VAR("townnamegrfid"),
45 SLC_VAR("townnametype"),
46 SLC_VAR("townnameparts"),
47 SLC_VAR("name"),
48 SLC_VAR("flags"),
49 SLC_VAR("statues"),
50 SLC_NULL(1, SL_MIN_VERSION, SLV_2),
51 SLC_VAR("have_ratings"),
52 SLC_VAR("ratings"),
53 SLC_VAR("unwanted"),
54 SLC_VAR("supplied[CT_PASSENGERS].old_max"),
55 SLC_VAR("supplied[CT_MAIL].old_max"),
56 SLC_VAR("supplied[CT_PASSENGERS].new_max"),
57 SLC_VAR("supplied[CT_MAIL].new_max"),
58 SLC_VAR("supplied[CT_PASSENGERS].old_act"),
59 SLC_VAR("supplied[CT_MAIL].old_act"),
60 SLC_VAR("supplied[CT_PASSENGERS].new_act"),
61 SLC_VAR("supplied[CT_MAIL].new_act"),
62 SLC_NULL(2, SL_MIN_VERSION, SLV_164),
63 SLC_VAR("received[TE_FOOD].old_act"),
64 SLC_VAR("received[TE_WATER].old_act"),
65 SLC_VAR("received[TE_FOOD].new_act"),
66 SLC_VAR("received[TE_WATER].new_act"),
67 SLC_VAR("goal"),
68 SLC_VAR("text"),
69 SLC_VAR("time_until_rebuild"),
70 SLC_VAR("grow_counter"),
71 SLC_VAR("growth_rate"),
72 SLC_VAR("fund_buildings_months"),
73 SLC_VAR("road_build_months"),
74 SLC_VAR("exclusivity"),
75 SLC_VAR("exclusive_counter"),
76 SLC_VAR("larger_town"),
77 SLC_VAR("layout"),
78 SLC_VAR("psa_list"),
79 SLC_NULL(4, SLV_166, SLV_EXTEND_CARGOTYPES),
80 SLC_NULL(8, SLV_EXTEND_CARGOTYPES, SLV_REMOVE_TOWN_CARGO_CACHE),
81 SLC_NULL(30, SLV_2, SLV_REMOVE_TOWN_CARGO_CACHE),
82 SLC_VAR("supplied"),
83 SLC_VAR("received"),
84 SLC_VAR("acceptance_matrix"),
87 #endif /* SAVELOAD_COMPAT_TOWN_H */