OpenTTD Source 20241224-master-gee860a5c8e
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
15const SaveLoadCompat _industry_accepts_sl_compat[] = {
16 SLC_VAR("cargo"),
17 SLC_VAR("waiting"),
18 SLC_VAR("last_accepted"),
19};
20
21const SaveLoadCompat _industry_produced_history_sl_compat[] = {
22 SLC_VAR("production"),
23 SLC_VAR("transported"),
24};
25
26const SaveLoadCompat _industry_produced_sl_compat[] = {
27 SLC_VAR("cargo"),
28 SLC_VAR("waiting"),
29 SLC_VAR("rate"),
30};
31
34 SLC_VAR("location.tile"),
35 SLC_VAR("location.w"),
36 SLC_VAR("location.h"),
37 SLC_VAR("town"),
38 SLC_VAR("neutral_station"),
40 SLC_VAR("produced_cargo"),
41 SLC_VAR("incoming_cargo_waiting"),
42 SLC_VAR("produced_cargo_waiting"),
43 SLC_VAR("production_rate"),
45 SLC_VAR("accepts_cargo"),
46 SLC_VAR("prod_level"),
47 SLC_VAR("this_month_production"),
48 SLC_VAR("this_month_transported"),
51 SLC_VAR("last_month_production"),
52 SLC_VAR("last_month_transported"),
53 SLC_VAR("counter"),
54 SLC_VAR("type"),
55 SLC_VAR("owner"),
56 SLC_VAR("random_colour"),
57 SLC_VAR("last_prod_year"),
58 SLC_VAR("was_cargo_delivered"),
59 SLC_VAR("ctlflags"),
60 SLC_VAR("founder"),
61 SLC_VAR("construction_date"),
62 SLC_VAR("construction_type"),
63 SLC_VAR("last_cargo_accepted_at[0]"),
64 SLC_VAR("last_cargo_accepted_at"),
65 SLC_VAR("selected_layout"),
66 SLC_VAR("exclusive_supplier"),
67 SLC_VAR("exclusive_consumer"),
68 SLC_VAR("storage"),
69 SLC_VAR("psa"),
71 SLC_VAR("random"),
72 SLC_VAR("text"),
74};
75
78 SLC_VAR("wanted_inds"),
79};
80
83 SLC_VAR("probability"),
84 SLC_VAR("min_number"),
85 SLC_VAR("target_count"),
86 SLC_VAR("max_wait"),
87 SLC_VAR("wait_count"),
88};
89
90#endif /* SAVELOAD_COMPAT_INDUSTRY_H */
const SaveLoadCompat _industry_sl_compat[]
Original field order for _industry_desc.
const SaveLoadCompat _industry_builder_sl_compat[]
Original field order for _industry_builder_desc.
const SaveLoadCompat _industrytype_builder_sl_compat[]
Original field order for _industrytype_builder_desc.
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition saveload.h:1247
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition saveload.h:1255
@ SLV_61
61 9892
Definition saveload.h:116
@ SLV_EXTEND_INDUSTRY_CARGO_SLOTS
202 PR#6867 Increase industry cargo slots to 16 in, 16 out
Definition saveload.h:286
@ SL_MIN_VERSION
First savegame version.
Definition saveload.h:31
@ SLV_197
197 27978 v1.8
Definition saveload.h:280
@ SLV_144
144 20334
Definition saveload.h:215
@ SLV_2
2.0 0.3.0 2.1 0.3.1, 0.3.2
Definition saveload.h:34
@ SLV_INDUSTRY_CARGO_REORGANISE
315 PR#10853 Industry accepts/produced data reorganised.
Definition saveload.h:358
@ SLV_82
82 11410
Definition saveload.h:141
SaveLoad information for backwards compatibility.
Definition saveload.h:737