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

Method Save

src/saveload/linkgraph_sl.cpp:292–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 LGRJChunkHandler() : ChunkHandler('LGRJ', CH_TABLE) {}
291
292 void Save() const override
293 {
294 SlTableHeader(GetLinkGraphJobDesc());
295
296 for (LinkGraphJob *lgj : LinkGraphJob::Iterate()) {
297 SlSetArrayIndex(lgj->index);
298 SlObject(lgj, GetLinkGraphJobDesc());
299 }
300 }
301
302 void Load() const override
303 {

Callers

nothing calls this directly

Calls 4

SlTableHeaderFunction · 0.85
GetLinkGraphJobDescFunction · 0.85
SlObjectFunction · 0.85
SlSetArrayIndexFunction · 0.70

Tested by

no test coverage detected