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

Method storeVersionedJson

source/game/StarEntityFactory.cpp:154–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154VersionedJson EntityFactory::storeVersionedJson(EntityType type, Json const& store) const {
155 RecursiveMutexLocker locker(m_mutex);
156
157 String identifier = EntityStorageIdentifiers.getRight(type);
158 return m_versioningDatabase->makeCurrentVersionedJson(identifier, store);
159}
160
161EntityPtr EntityFactory::loadVersionedEntity(VersionedJson const& versionedJson) const {
162 RecursiveMutexLocker locker(m_mutex);

Callers 1

savePlayerMethod · 0.80

Calls 1

Tested by

no test coverage detected