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

Method Save

src/saveload/map_sl.cpp:194–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 }
193
194 void Save() const override
195 {
196 std::array<uint8_t, MAP_SL_BUF_SIZE> buf;
197 uint size = Map::Size();
198
199 SlSetLength(size);
200 for (TileIndex i{}; i != size;) {
201 for (uint j = 0; j != MAP_SL_BUF_SIZE; j++) buf[j] = Tile(i++).m3();
202 SlCopy(buf.data(), MAP_SL_BUF_SIZE, SLE_UINT8);
203 }
204 }
205};
206
207struct M3HIChunkHandler : ChunkHandler {

Callers

nothing calls this directly

Calls 4

SlSetLengthFunction · 0.85
TileClass · 0.85
SlCopyFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected