OpenTTD Source  20241108-master-g80f628063a
linkgraph_sl_compat.h File Reference

Loading of linkgraph chunks before table headers were added. More...

#include "../saveload.h"

Go to the source code of this file.

Variables

const SaveLoadCompat _linkgraph_edge_sl_compat []
 Original field order for SlLinkgraphEdge. More...
 
const SaveLoadCompat _linkgraph_node_sl_compat []
 Original field order for SlLinkgraphNode. More...
 
const SaveLoadCompat _linkgraph_sl_compat []
 Original field order for link_graph_desc. More...
 
const SaveLoadCompat _linkgraph_job_sl_compat []
 Original field order for job_desc. More...
 
const SaveLoadCompat _linkgraph_schedule_sl_compat []
 Original field order for schedule_desc. More...
 

Detailed Description

Loading of linkgraph chunks before table headers were added.

Definition in file linkgraph_sl_compat.h.

Variable Documentation

◆ _linkgraph_edge_sl_compat

const SaveLoadCompat _linkgraph_edge_sl_compat[]
Initial value:
= {
SLC_VAR("capacity"),
SLC_VAR("usage"),
SLC_VAR("last_unrestricted_update"),
SLC_VAR("last_restricted_update"),
SLC_VAR("next_edge"),
}
#define SLC_VAR(name)
Field name where the real SaveLoad can be located.
Definition: saveload.h:1211
#define SLC_NULL(length, from, to)
Empty space in every savegame version.
Definition: saveload.h:1219
@ 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

Original field order for SlLinkgraphEdge.

Definition at line 16 of file linkgraph_sl_compat.h.

◆ _linkgraph_job_sl_compat

const SaveLoadCompat _linkgraph_job_sl_compat[]
Initial value:
= {
SLC_VAR("linkgraph.recalc_interval"),
SLC_VAR("linkgraph.recalc_time"),
SLC_VAR("linkgraph.distribution_pax"),
SLC_VAR("linkgraph.distribution_mail"),
SLC_VAR("linkgraph.distribution_armoured"),
SLC_VAR("linkgraph.distribution_default"),
SLC_VAR("linkgraph.accuracy"),
SLC_VAR("linkgraph.demand_distance"),
SLC_VAR("linkgraph.demand_size"),
SLC_VAR("linkgraph.short_path_saturation"),
SLC_VAR("join_date"),
SLC_VAR("link_graph.index"),
SLC_VAR("linkgraph"),
}

Original field order for job_desc.

Definition at line 44 of file linkgraph_sl_compat.h.

Referenced by LGRJChunkHandler::Load().

◆ _linkgraph_node_sl_compat

const SaveLoadCompat _linkgraph_node_sl_compat[]
Initial value:
= {
SLC_VAR("xy"),
SLC_VAR("supply"),
SLC_VAR("demand"),
SLC_VAR("station"),
SLC_VAR("last_update"),
SLC_VAR("edges"),
}

Original field order for SlLinkgraphNode.

Definition at line 26 of file linkgraph_sl_compat.h.

◆ _linkgraph_schedule_sl_compat

const SaveLoadCompat _linkgraph_schedule_sl_compat[]
Initial value:
= {
SLC_VAR("schedule"),
SLC_VAR("running"),
}

Original field order for schedule_desc.

Definition at line 61 of file linkgraph_sl_compat.h.

Referenced by LGRSChunkHandler::Load().

◆ _linkgraph_sl_compat

const SaveLoadCompat _linkgraph_sl_compat[]
Initial value:
= {
SLC_VAR("last_compression"),
SLC_VAR("num_nodes"),
SLC_VAR("cargo"),
SLC_VAR("nodes"),
}

Original field order for link_graph_desc.

Definition at line 36 of file linkgraph_sl_compat.h.

Referenced by LGRPChunkHandler::Load().