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

Method shipsAtLocation

source/game/StarSystemWorldServer.cpp:126–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126List<SystemClientShipPtr> SystemWorldServer::shipsAtLocation(SystemLocation const& location) const {
127 return m_ships.values().filtered([location](auto const& ship) { return ship->systemLocation() == location; });
128}
129
130List<InstanceWorldId> SystemWorldServer::activeInstanceWorlds() const {
131 // Find the warp actions for all ships located at objects

Callers 1

serverUpdateMethod · 0.80

Calls 3

systemLocationMethod · 0.80
filteredMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected