OpenTTD Source  20241121-master-g67a0fccfad
linkgraph_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_LINKGRAPH_H
11 #define SAVELOAD_COMPAT_LINKGRAPH_H
12 
13 #include "../saveload.h"
14 
18  SLC_VAR("capacity"),
19  SLC_VAR("usage"),
20  SLC_VAR("last_unrestricted_update"),
21  SLC_VAR("last_restricted_update"),
22  SLC_VAR("next_edge"),
23 };
24 
27  SLC_VAR("xy"),
28  SLC_VAR("supply"),
29  SLC_VAR("demand"),
30  SLC_VAR("station"),
31  SLC_VAR("last_update"),
32  SLC_VAR("edges"),
33 };
34 
37  SLC_VAR("last_compression"),
38  SLC_VAR("num_nodes"),
39  SLC_VAR("cargo"),
40  SLC_VAR("nodes"),
41 };
42 
45  SLC_VAR("linkgraph.recalc_interval"),
46  SLC_VAR("linkgraph.recalc_time"),
47  SLC_VAR("linkgraph.distribution_pax"),
48  SLC_VAR("linkgraph.distribution_mail"),
49  SLC_VAR("linkgraph.distribution_armoured"),
50  SLC_VAR("linkgraph.distribution_default"),
51  SLC_VAR("linkgraph.accuracy"),
52  SLC_VAR("linkgraph.demand_distance"),
53  SLC_VAR("linkgraph.demand_size"),
54  SLC_VAR("linkgraph.short_path_saturation"),
55  SLC_VAR("join_date"),
56  SLC_VAR("link_graph.index"),
57  SLC_VAR("linkgraph"),
58 };
59 
62  SLC_VAR("schedule"),
63  SLC_VAR("running"),
64 };
65 
66 #endif /* SAVELOAD_COMPAT_LINKGRAPH_H */
const SaveLoadCompat _linkgraph_node_sl_compat[]
Original field order for SlLinkgraphNode.
const SaveLoadCompat _linkgraph_edge_sl_compat[]
Original field order for SlLinkgraphEdge.
const SaveLoadCompat _linkgraph_schedule_sl_compat[]
Original field order for schedule_desc.
const SaveLoadCompat _linkgraph_job_sl_compat[]
Original field order for job_desc.
const SaveLoadCompat _linkgraph_sl_compat[]
Original field order for link_graph_desc.
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1223
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1231
@ SLV_191
191 26636 FS#6026 Fix disaster vehicle storage (No bump) 191 26646 FS#6041 Linkgraph - store location...
Definition: saveload.h:272
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:31
SaveLoad information for backwards compatibility.
Definition: saveload.h:733