| 149 | } |
| 150 | |
| 151 | void PlayerUniverseMap::addMappedCoordinate(CelestialCoordinate const& coordinate) { |
| 152 | if (coordinate.isNull()) |
| 153 | return; |
| 154 | |
| 155 | auto& universeMap = m_universeMaps[*m_serverUuid]; |
| 156 | auto& systemMap = universeMap.systems[coordinate.location()]; |
| 157 | if (!coordinate.isSystem()) |
| 158 | systemMap.mappedPlanets.add(coordinate.planet()); |
| 159 | } |
| 160 | |
| 161 | void PlayerUniverseMap::addMappedObject(CelestialCoordinate const& system, Uuid const& uuid, String const& typeName, Maybe<CelestialOrbit> const& orbit, JsonObject parameters) { |
| 162 | MappedObject object { |