static ProjectConfig ConvertToPublic(ProjectConfigInternal info) { if (info == null) { return(null); } var newInfo = new ProjectConfig(); if (info.AssetsFolder != null) { newInfo.AssetsFolder = info.AssetsFolder.ToList(); } if (info.PluginsFolder != null) { newInfo.PluginsFolder = info.PluginsFolder.ToList(); } if (info.SolutionProjects != null) { newInfo.SolutionProjects = info.SolutionProjects.ToList(); } if (info.SolutionFolders != null) { newInfo.SolutionFolders = info.SolutionFolders.ToDictionary(x => x.Key, x => x.Value); } return(newInfo); }
static ProjectConfig ConvertToPublic(ProjectConfigInternal info) { if (info == null) { return null; } var newInfo = new ProjectConfig(); if (info.AssetsFolder != null) { newInfo.AssetsFolder = info.AssetsFolder.ToList(); } if (info.PluginsFolder != null) { newInfo.PluginsFolder = info.PluginsFolder.ToList(); } if (info.SolutionProjects != null) { newInfo.SolutionProjects = info.SolutionProjects.ToList(); } if (info.SolutionFolders != null) { newInfo.SolutionFolders = info.SolutionFolders.ToDictionary(x => x.Key, x => x.Value); } return newInfo; }
static ProjectConfig ConvertToPublic(ProjectConfigInternal info) { if (info == null) { return(null); } var newInfo = new ProjectConfig(); newInfo.ProjectSettingsPath = info.ProjectSettingsPath; newInfo.UnityPackagesPath = info.UnityPackagesPath; if (info.AssetsFolder != null) { newInfo.AssetsFolder.AddRange(info.AssetsFolder.ToList()); } if (info.PluginsFolder != null) { newInfo.PluginsFolder.AddRange(info.PluginsFolder.ToList()); } if (info.SolutionProjects != null) { newInfo.SolutionProjects.AddRange(info.SolutionProjects.ToList()); } if (info.PackageFolders != null) { newInfo.PackageFolders.AddRange(info.PackageFolders.ToList()); } if (info.Prebuilt != null) { newInfo.Prebuilt.AddRange(info.Prebuilt.ToList()); } if (info.SolutionFolders != null) { newInfo.SolutionFolders.AddRange(info.SolutionFolders.Select(x => x.Single()).ToList()); } if (info.TargetPlatforms != null) { newInfo.ProjectPlatforms = info.TargetPlatforms; } return(newInfo); }
static ProjectConfig ConvertToPublic(ProjectConfigInternal info) { if (info == null) { return null; } var newInfo = new ProjectConfig(); newInfo.ProjectSettingsPath = info.ProjectSettingsPath; if (info.AssetsFolder != null) { newInfo.AssetsFolder.AddRange(info.AssetsFolder.ToList()); } if (info.PluginsFolder != null) { newInfo.PluginsFolder.AddRange(info.PluginsFolder.ToList()); } if (info.SolutionProjects != null) { newInfo.SolutionProjects.AddRange(info.SolutionProjects.ToList()); } if (info.PackageFolders != null) { newInfo.PackageFolders.AddRange(info.PackageFolders.ToList()); } if (info.Prebuilt != null) { newInfo.Prebuilt.AddRange(info.Prebuilt.ToList()); } if (info.SolutionFolders != null) { newInfo.SolutionFolders.AddRange(info.SolutionFolders.Select(x => x.Single()).ToList()); } return newInfo; }