| 270 | } |
| 271 | |
| 272 | bool UniverseServer::isPvp(ConnectionId clientId) const { |
| 273 | ReadLocker clientsLocker(m_clientsLock); |
| 274 | if (auto clientContext = m_clients.value(clientId)) |
| 275 | return clientContext->team().type == TeamType::PVP; |
| 276 | return false; |
| 277 | } |
| 278 | |
| 279 | void UniverseServer::setPvp(ConnectionId clientId, bool pvp) { |
| 280 | RecursiveMutexLocker locker(m_mainLock); |