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

Method uuidForClient

source/game/StarUniverseServer.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220Maybe<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
227Maybe<ConnectionId> UniverseServer::clientForUuid(Uuid const& uuid) const {
228 ReadLocker clientsLocker(m_clientsLock);

Callers 1

listMethod · 0.45

Calls 2

playerUuidMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected