| 218 | } |
| 219 | |
| 220 | Maybe<Uuid> UniverseServer::uuidForClient(ConnectionId clientId) const { |
| 221 | ReadLocker clientsLocker(m_clientsLock); |
| 222 | if (auto clientContext = m_clients.value(clientId)) |
| 223 | return clientContext->playerUuid(); |
| 224 | return {}; |
| 225 | } |
| 226 | |
| 227 | Maybe<ConnectionId> UniverseServer::clientForUuid(Uuid const& uuid) const { |
| 228 | ReadLocker clientsLocker(m_clientsLock); |
no test coverage detected