| 204 | } |
| 205 | |
| 206 | bool WorldServer::spawnTargetValid(SpawnTarget const& spawnTarget) const { |
| 207 | if (spawnTarget.is<SpawnTargetUniqueEntity>()) |
| 208 | return (bool)m_entityMap->get<WarpTargetEntity>(m_worldStorage->loadUniqueEntity(spawnTarget.get<SpawnTargetUniqueEntity>())); |
| 209 | return true; |
| 210 | } |
| 211 | |
| 212 | bool WorldServer::addClient(ConnectionId clientId, SpawnTarget const& spawnTarget, bool isLocal, bool isAdmin, NetCompatibilityRules netRules) { |
| 213 | if (m_clientInfo.contains(clientId)) |
no test coverage detected