| 478 | } |
| 479 | |
| 480 | ByteArray WorldStorage::tileSectorKey(Sector const& sector) { |
| 481 | DataStreamBuffer ds(5); |
| 482 | ds.write(StoreType::TileSector); |
| 483 | ds.cwrite<uint16_t>(sector[0]); |
| 484 | ds.cwrite<uint16_t>(sector[1]); |
| 485 | return ds.takeData(); |
| 486 | } |
| 487 | |
| 488 | WorldStorage::TileSectorStore WorldStorage::readTileSector(ByteArray const& data) { |
| 489 | auto& root = Root::singleton(); |