OpenTTD Source  12.0-beta2
industry_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_INDUSTRY_H
11 #define SAVELOAD_COMPAT_INDUSTRY_H
12 
13 #include "../saveload.h"
14 
17  SLC_VAR("location.tile"),
18  SLC_VAR("location.w"),
19  SLC_VAR("location.h"),
20  SLC_VAR("town"),
21  SLC_VAR("neutral_station"),
23  SLC_VAR("produced_cargo"),
24  SLC_VAR("incoming_cargo_waiting"),
25  SLC_VAR("produced_cargo_waiting"),
26  SLC_VAR("production_rate"),
28  SLC_VAR("accepts_cargo"),
29  SLC_VAR("prod_level"),
30  SLC_VAR("this_month_production"),
31  SLC_VAR("this_month_transported"),
32  SLC_VAR("last_month_pct_transported"),
33  SLC_VAR("last_month_production"),
34  SLC_VAR("last_month_transported"),
35  SLC_VAR("counter"),
36  SLC_VAR("type"),
37  SLC_VAR("owner"),
38  SLC_VAR("random_colour"),
39  SLC_VAR("last_prod_year"),
40  SLC_VAR("was_cargo_delivered"),
41  SLC_VAR("ctlflags"),
42  SLC_VAR("founder"),
43  SLC_VAR("construction_date"),
44  SLC_VAR("construction_type"),
45  SLC_VAR("last_cargo_accepted_at[0]"),
46  SLC_VAR("last_cargo_accepted_at"),
47  SLC_VAR("selected_layout"),
48  SLC_VAR("exclusive_supplier"),
49  SLC_VAR("exclusive_consumer"),
50  SLC_VAR("storage"),
51  SLC_VAR("psa"),
52  SLC_NULL(1, SLV_82, SLV_197),
53  SLC_VAR("random"),
54  SLC_VAR("text"),
55  SLC_NULL(32, SLV_2, SLV_144),
56 };
57 
60  SLC_VAR("wanted_inds"),
61 };
62 
65  SLC_VAR("probability"),
66  SLC_VAR("min_number"),
67  SLC_VAR("target_count"),
68  SLC_VAR("max_wait"),
69  SLC_VAR("wait_count"),
70 };
71 
72 #endif /* SAVELOAD_COMPAT_INDUSTRY_H */
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:1005
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
_industry_builder_sl_compat
const SaveLoadCompat _industry_builder_sl_compat[]
Original field order for _industry_builder_desc.
Definition: industry_sl_compat.h:59
_industrytype_builder_sl_compat
const SaveLoadCompat _industrytype_builder_sl_compat[]
Original field order for _industrytype_builder_desc.
Definition: industry_sl_compat.h:64
SLV_61
@ SLV_61
61 9892
Definition: saveload.h:120
_industry_sl_compat
const SaveLoadCompat _industry_sl_compat[]
Original field order for _industry_desc.
Definition: industry_sl_compat.h:16
SLV_82
@ SLV_82
82 11410
Definition: saveload.h:145
SLV_2
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition: saveload.h:38
SLC_NULL
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1013
SaveLoadCompat
SaveLoad information for backwards compatibility.
Definition: saveload.h:674
SLV_197
@ SLV_197
197 27978 v1.8
Definition: saveload.h:284