MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / getClientForUuid

Method getClientForUuid

source/game/StarUniverseServer.cpp:1993–2000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1991}
1992
1993Maybe<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
2002WorldServerThreadPtr UniverseServer::getWorld(WorldId const& worldId) {
2003 if (m_worlds.contains(worldId)) {

Callers

nothing calls this directly

Calls 2

playerUuidMethod · 0.80
clientIdMethod · 0.80

Tested by

no test coverage detected