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

Method clientShipCoordinate

source/game/StarUniverseServer.cpp:343–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343CelestialCoordinate UniverseServer::clientShipCoordinate(ConnectionId clientId) const {
344 ReadLocker clientsLocker(m_clientsLock);
345 if (auto clientContext = m_clients.value(clientId))
346 return clientContext->shipCoordinate();
347 return CelestialCoordinate();
348}
349
350ClockPtr UniverseServer::universeClock() const {
351 return m_universeClock;

Callers

nothing calls this directly

Calls 3

CelestialCoordinateClass · 0.85
valueMethod · 0.45
shipCoordinateMethod · 0.45

Tested by

no test coverage detected