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

Method loadStore

source/game/StarItemDescriptor.cpp:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44ItemDescriptor ItemDescriptor::loadStore(Json const& spec) {
45 auto versioningDatabase = Root::singleton().versioningDatabase();
46 return ItemDescriptor{versioningDatabase->loadVersionedJson(VersionedJson::fromJson(spec), "Item")};
47}
48
49String const& ItemDescriptor::name() const {
50 return m_name;

Callers

nothing calls this directly

Calls 3

singletonClass · 0.85
versioningDatabaseMethod · 0.80
loadVersionedJsonMethod · 0.45

Tested by

no test coverage detected