MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / tileSectorKey

Method tileSectorKey

source/game/StarWorldStorage.cpp:480–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480ByteArray 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
488WorldStorage::TileSectorStore WorldStorage::readTileSector(ByteArray const& data) {
489 auto& root = Root::singleton();

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
takeDataMethod · 0.45

Tested by

no test coverage detected