public AppConfigModel(IReadOnlyCollection <ProjectModel> projects, Guid?defaultProject, HydroneerVersion hydroneerVersion, IReadOnlyCollection <GuidItemModel> guids) { Projects = projects; DefaultProject = defaultProject; HydroneerVersion = hydroneerVersion; Guids = guids; }
public async Task SetGameVersion(HydroneerVersion hydroneerVersion) { var config = await _configuration.GetConfigurationAsync(); var newConfig = new AppConfigModel(config.Projects.ToModel(), config.DefaultProject, hydroneerVersion, config.Guids.ToModel()); await _configuration.SaveConfigurationAsync(newConfig); }
public async Task SetGameVersion(HydroneerVersion hydroneerVersion) { await _configurationService.SetGameVersion(hydroneerVersion); }