MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetLinkGraphDesc

Function GetLinkGraphDesc

src/saveload/linkgraph_sl.cpp:136–145  ·  view source on GitHub ↗

* Get a SaveLoad array for a link graph. * @return SaveLoad array for link graph. */

Source from the content-addressed store, hash-verified

134 * @return SaveLoad array for link graph.
135 */
136SaveLoadTable GetLinkGraphDesc()
137{
138 static const SaveLoad link_graph_desc[] = {
139 SLE_VAR(LinkGraph, last_compression, SLE_INT32),
140 SLEG_CONDVAR("num_nodes", _num_nodes, SLE_UINT16, SL_MIN_VERSION, SLV_SAVELOAD_LIST_LENGTH),
141 SLE_VAR(LinkGraph, cargo, SLE_UINT8),
142 SLEG_STRUCTLIST("nodes", SlLinkgraphNode),
143 };
144 return link_graph_desc;
145}
146
147/**
148 * Proxy to reuse LinkGraph to save/load a LinkGraphJob.

Callers 3

GetDescriptionMethod · 0.85
SaveMethod · 0.85
LoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected