| 108 | } |
| 109 | |
| 110 | void Save() const override |
| 111 | { |
| 112 | std::array<uint8_t, MAP_SL_BUF_SIZE> buf; |
| 113 | uint size = Map::Size(); |
| 114 | |
| 115 | SlSetLength(size); |
| 116 | for (TileIndex i{}; i != size;) { |
| 117 | for (uint j = 0; j != MAP_SL_BUF_SIZE; j++) buf[j] = Tile(i++).height(); |
| 118 | SlCopy(buf.data(), MAP_SL_BUF_SIZE, SLE_UINT8); |
| 119 | } |
| 120 | } |
| 121 | }; |
| 122 | |
| 123 | struct MAPOChunkHandler : ChunkHandler { |
nothing calls this directly
no test coverage detected