| 26 | } |
| 27 | |
| 28 | void SystemWorldServerThread::addClient(ConnectionId clientId, Uuid const& uuid, float shipSpeed, SystemLocation const& location) { |
| 29 | WriteLocker locker(m_mutex); |
| 30 | m_clients.add(clientId); |
| 31 | m_outgoingPacketQueue.set(clientId, List<PacketPtr>()); |
| 32 | |
| 33 | m_systemWorld->addClientShip(clientId, uuid, shipSpeed, location); |
| 34 | |
| 35 | m_clientShipLocations.set(clientId, {m_systemWorld->clientShipLocation(clientId), m_systemWorld->clientSkyParameters(clientId)}); |
| 36 | if (auto warpAction = m_systemWorld->clientWarpAction(clientId)) |
| 37 | m_clientWarpActions.set(clientId, *warpAction); |
| 38 | } |
| 39 | |
| 40 | void SystemWorldServerThread::removeClient(ConnectionId clientId) { |
| 41 | WriteLocker locker(m_mutex); |
nothing calls this directly
no test coverage detected