示例#1
0
        public void SelectCelestialObject(ICelestialObject celestialObject)
        {
            Logger.Info("A celestial object is selected.");

            _gameSession.SelectedObject = celestialObject.DeepClone();

            OnSelectCelestialObject?.Invoke(celestialObject);
        }
示例#2
0
        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);
        }