| 526 | } |
| 527 | |
| 528 | ByteArray WorldStorage::writeTileSector(TileSectorStore const& store) { |
| 529 | DataStreamBuffer ds; |
| 530 | ds.vuwrite(store.generationLevel); |
| 531 | ds.vuwrite(store.tileSerializationVersion); |
| 532 | starAssert(store.tiles); |
| 533 | for (size_t y = 0; y < WorldSectorSize; ++y) { |
| 534 | for (size_t x = 0; x < WorldSectorSize; ++x) |
| 535 | (*store.tiles)(x, y).write(ds); |
| 536 | } |
| 537 | return compressData(ds.takeData()); |
| 538 | } |
| 539 | |
| 540 | ByteArray WorldStorage::uniqueIndexKey(String const& uniqueId) { |
| 541 | DataStreamBuffer ds(5); |
nothing calls this directly
no test coverage detected