示例#1
0
        internal void SaveLastGame()
        {
            Settings.Get.LastGame.StartConditions = this.SelectedStart;
            var saver = new ParameterSavingVisitor();

            Settings.Get.LastGame.StarPositionerConfig = saver.Save(this.StarPositioner);
            Settings.Get.LastGame.StarConnectorConfig  = saver.Save(this.StarConnector);
            Settings.Get.LastGame.StarPopulatorConfig  = saver.Save(this.StarPopulator);
        }
示例#2
0
        internal void SaveLastGame()
        {
            Settings.Get.LastGame.StartConditions = this.SelectedStart;
            Settings.Get.LastGame.PlayersConfig   = this.players.Select(x => x.BuildSaveData()).ToArray();
            var saver = new ParameterSavingVisitor();

            Settings.Get.LastGame.StarPositionerConfig = saver.Save(this.StarPositioner);
            Settings.Get.LastGame.StarConnectorConfig  = saver.Save(this.StarConnector);
            Settings.Get.LastGame.StarPopulatorConfig  = saver.Save(this.StarPopulator);
        }