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

Method clientShipLocation

source/game/StarSystemWorldServerThread.cpp:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133SystemLocation SystemWorldServerThread::clientShipLocation(ConnectionId clientId) {
134 ReadLocker locker(m_queueMutex);
135 // while a ship destination is pending the ship is assumed to be flying
136 if (m_clientShipDestinations.contains(clientId))
137 return {};
138 return m_clientShipLocations.get(clientId).first;
139}
140
141Maybe<pair<WarpAction, WarpMode>> SystemWorldServerThread::clientWarpAction(ConnectionId clientId) {
142 ReadLocker locker(m_queueMutex);

Callers 2

addClientMethod · 0.45
updateMethod · 0.45

Calls 2

containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected