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

Method Save

src/saveload/linkgraph_sl.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 static inline const SaveLoadCompatTable compat_description = _linkgraph_edge_sl_compat;
43
44 void Save(Node *bn) const override
45 {
46 SlSetStructListLength(bn->edges.size());
47 for (Edge &e : bn->edges) {
48 SlObject(&e, this->GetDescription());
49 }
50 }
51
52 void Load(Node *bn) const override
53 {

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