| 159 | } |
| 160 | |
| 161 | void PlayerUniverseMap::addMappedObject(CelestialCoordinate const& system, Uuid const& uuid, String const& typeName, Maybe<CelestialOrbit> const& orbit, JsonObject parameters) { |
| 162 | MappedObject object { |
| 163 | typeName, |
| 164 | orbit, |
| 165 | parameters |
| 166 | }; |
| 167 | auto& universeMap = m_universeMaps[*m_serverUuid]; |
| 168 | universeMap.systems[system.location()].mappedObjects.set(uuid, object); |
| 169 | } |
| 170 | |
| 171 | void PlayerUniverseMap::removeMappedObject(CelestialCoordinate const& system, Uuid const& uuid) { |
| 172 | auto& universeMap = m_universeMaps[*m_serverUuid]; |