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

Method worldMetadata

source/game/StarWorldStorage.cpp:102–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102VersionedJson WorldStorage::worldMetadata() {
103 return readWorldMetadata(*m_db.find(metadataKey())).userMetadata;
104}
105
106void WorldStorage::setWorldMetadata(VersionedJson const& metadata) {
107 m_db.insert(metadataKey(), writeWorldMetadata({Vec2U(m_tileArray->size()), metadata}));

Callers 1

readMetadataMethod · 0.80

Calls 1

findMethod · 0.45

Tested by

no test coverage detected