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

Method clientShip

source/game/StarSystemWorldServer.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42SystemClientShipPtr 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
49SystemLocation SystemWorldServer::clientShipLocation(ConnectionId clientId) const {
50 return m_ships.get(m_clientShips.get(clientId))->systemLocation();

Callers 1

updateMethod · 0.80

Calls 2

containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected