public void SelectCelestialObject(ICelestialObject celestialObject) { Logger.Info("A celestial object is selected."); _gameSession.SelectedObject = celestialObject.DeepClone(); OnSelectCelestialObject?.Invoke(celestialObject); }
public void SelectPointInSpace(PointF pointInSpace) { Logger.Debug("A point in space is selected."); ICelestialObject celestialObject = new PointInSpace { PositionX = pointInSpace.X, PositionY = pointInSpace.Y, Id = -1, Name = "Point in Space", Classification = -1 }; _gameSession.SelectedObject = celestialObject.DeepClone(); OnSelectCelestialObject?.Invoke(celestialObject); }