| 1991 | } |
| 1992 | |
| 1993 | Maybe<ConnectionId> UniverseServer::getClientForUuid(Uuid const& uuid) const { |
| 1994 | for (auto const& p : m_clients) { |
| 1995 | if (p.second->playerUuid() == uuid) |
| 1996 | return p.second->clientId(); |
| 1997 | } |
| 1998 | |
| 1999 | return {}; |
| 2000 | } |
| 2001 | |
| 2002 | WorldServerThreadPtr UniverseServer::getWorld(WorldId const& worldId) { |
| 2003 | if (m_worlds.contains(worldId)) { |
nothing calls this directly
no test coverage detected