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

Method Save

src/saveload/linkgraph_sl.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 static inline const SaveLoadCompatTable compat_description = _linkgraph_node_sl_compat;
107
108 void Save(LinkGraph *lg) const override
109 {
110 _linkgraph = lg;
111
112 SlSetStructListLength(lg->Size());
113 for (NodeID from = 0; from < lg->Size(); ++from) {
114 _linkgraph_from = from;
115 SlObject(&lg->nodes[from], this->GetDescription());
116 }
117 }
118
119 void Load(LinkGraph *lg) const override
120 {

Callers

nothing calls this directly

Calls 4

SlSetStructListLengthFunction · 0.85
SlObjectFunction · 0.85
SizeMethod · 0.45
GetDescriptionMethod · 0.45

Tested by

no test coverage detected