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

Method setMetadata

source/game/StarPlayerStorage.cpp:294–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void PlayerStorage::setMetadata(String key, Json value) {
295 auto& val = m_metadata[std::move(key)];
296 if (val != value) {
297 val = std::move(value);
298 writeMetadata();
299 }
300}
301
302Json PlayerStorage::getMetadata(String const& key) {
303 return m_metadata.value(key);

Callers 4

addHistoryMethod · 0.45
writeMetadataMethod · 0.45
resetModIdMethod · 0.45
uploadToSteamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected