| 175 | } |
| 176 | |
| 177 | void PlayerUniverseMap::filterMappedObjects(CelestialCoordinate const& system, List<Uuid> const& allowed) { |
| 178 | auto& universeMap = m_universeMaps[*m_serverUuid]; |
| 179 | if (auto systemMap = universeMap.systems.ptr(system.location())) { |
| 180 | auto& objects = systemMap->mappedObjects; |
| 181 | for (auto& uuid : objects.keys()) { |
| 182 | if (!allowed.contains(uuid)) |
| 183 | objects.remove(uuid); |
| 184 | } |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | void PlayerUniverseMap::setServerUuid(Maybe<Uuid> serverUuid) { |
| 189 | m_serverUuid = std::move(serverUuid); |