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

Method clientPlayer

source/game/StarWorldServer.cpp:327–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327PlayerPtr WorldServer::clientPlayer(ConnectionId clientId) const {
328 auto i = m_clientInfo.find(clientId);
329 if (i != m_clientInfo.end())
330 return get<Player>(i->second->clientState.playerId());
331 else
332 return {};
333}
334
335List<EntityId> WorldServer::players() const {
336 List<EntityId> playerIds;

Callers 2

playerRevivePositionMethod · 0.80
executeForClientMethod · 0.80

Calls 3

playerIdMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected