| 30 | }; |
| 31 | |
| 32 | EntityFactory::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 | |
| 43 | ByteArray EntityFactory::netStoreEntity(EntityPtr const& entity, NetCompatibilityRules rules) const { |
| 44 | RecursiveMutexLocker locker(m_mutex); |
nothing calls this directly
no test coverage detected