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); }
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); }