| 40 | } |
| 41 | |
| 42 | SystemClientShipPtr SystemWorldServer::clientShip(ConnectionId clientId) const { |
| 43 | if (m_clientShips.contains(clientId) && m_ships.contains(m_clientShips.get(clientId))) |
| 44 | return m_ships.get(m_clientShips.get(clientId)); |
| 45 | else |
| 46 | return {}; |
| 47 | } |
| 48 | |
| 49 | SystemLocation SystemWorldServer::clientShipLocation(ConnectionId clientId) const { |
| 50 | return m_ships.get(m_clientShips.get(clientId))->systemLocation(); |