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

Method players

source/game/StarWorldServer.cpp:335–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335List<EntityId> WorldServer::players() const {
336 List<EntityId> playerIds;
337 for (auto pair : m_clientInfo)
338 playerIds.append(pair.second->clientState.playerId());
339 return playerIds;
340}
341
342void WorldServer::handleIncomingPackets(ConnectionId clientId, List<PacketPtr> const& packets) {
343 shared_ptr<ClientInfo> clientInfo = m_clientInfo.get(clientId);

Callers 1

updateRunningMethod · 0.45

Calls 2

playerIdMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected