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

Method Save

src/saveload/map_sl.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 MAPSChunkHandler() : ChunkHandler('MAPS', CH_TABLE) {}
31
32 void Save() const override
33 {
34 SlTableHeader(_map_desc);
35
36 _map_dim_x = Map::SizeX();
37 _map_dim_y = Map::SizeY();
38
39 SlSetArrayIndex(0);
40 SlGlobList(_map_desc);
41 }
42
43 void Load() const override
44 {

Callers

nothing calls this directly

Calls 3

SlTableHeaderFunction · 0.85
SlGlobListFunction · 0.85
SlSetArrayIndexFunction · 0.70

Tested by

no test coverage detected