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

Method loadVersionedEntity

source/game/StarEntityFactory.cpp:161–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161EntityPtr EntityFactory::loadVersionedEntity(VersionedJson const& versionedJson) const {
162 RecursiveMutexLocker locker(m_mutex);
163
164 EntityType type = EntityStorageIdentifiers.getLeft(versionedJson.identifier);
165 auto store = loadVersionedJson(versionedJson, type);
166 return diskLoadEntity(type, store);
167}
168
169VersionedJson EntityFactory::storeVersionedEntity(EntityPtr const& entityPtr) const {
170 return storeVersionedJson(entityPtr->entityType(), diskStoreEntity(entityPtr));

Callers 1

loadSectorToLevelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected