/// <inheritdoc/> /// <inheritdoc/> public void Save(Profile profile) { var configDto = new SaveDataDto { Content = string.Join("\r\n", _parser.ConvertToText(profile.BasicConfig)), FileExtension = ConfigFileExtension, FileName = ConfigFileName, Folders = new List <string> { Constants.RootFolder, Constants.ServerProfileFolder, profile.Id.ToString() } }; profile.BasicConfig.FileLocation = configDto.GetFullPath(); FileHelper.Save(configDto); }
public void Save(Profile profile) { var armaProfileDto = new SaveDataDto { Content = string.Join("\r\n", _parser.ConvertToText(profile.ArmaProfile)), FileExtension = GameProfileFileExtension, FileName = Constants.GameProfileName, Folders = new List <string> { Constants.RootFolder, Constants.ServerProfileFolder, profile.Id.ToString(), UserFolder, Constants.GameProfileName } }; profile.ArmaProfile.FileLocation = armaProfileDto.GetFullPath(); FileHelper.Save(armaProfileDto); }
/// <inheritdoc/> public void Save(Profile profile) { var configDto = new SaveDataDto { Content = string.Join("\r\n", _parser.ConvertToText(profile.ServerConfig)), FileExtension = ConfigFileExtension, FileName = ConfigFileName, Folders = new List <string> { Constants.RootFolder, Constants.ServerProfileFolder, profile.Id.ToString() } }; configDto.Content = _missionDirector.SaveMissions(profile.ServerConfig.Missions, configDto.Content); profile.ServerConfig.FileLocation = Path.Combine(Constants.RootFolder, configDto.GetFullPath()); FileHelper.Save(configDto); }