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

Method EntityFactory

source/game/StarEntityFactory.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32EntityFactory::EntityFactory() {
33 auto& root = Root::singleton();
34 m_playerFactory = root.playerFactory();
35 m_monsterDatabase = root.monsterDatabase();
36 m_objectDatabase = root.objectDatabase();
37 m_projectileDatabase = root.projectileDatabase();
38 m_npcDatabase = root.npcDatabase();
39 m_vehicleDatabase = root.vehicleDatabase();
40 m_versioningDatabase = root.versioningDatabase();
41}
42
43ByteArray EntityFactory::netStoreEntity(EntityPtr const& entity, NetCompatibilityRules rules) const {
44 RecursiveMutexLocker locker(m_mutex);

Callers

nothing calls this directly

Calls 8

singletonClass · 0.85
playerFactoryMethod · 0.80
monsterDatabaseMethod · 0.80
objectDatabaseMethod · 0.80
projectileDatabaseMethod · 0.80
npcDatabaseMethod · 0.80
vehicleDatabaseMethod · 0.80
versioningDatabaseMethod · 0.80

Tested by

no test coverage detected