4 using System.Collections.Generic;
5 using System.Collections.ObjectModel;
6 using System.ComponentModel;
9 using SiliconStudio.Core;
10 using SiliconStudio.Core.IO;
12 namespace SiliconStudio.Assets
17 [DataContract(
"PackageProfileCollection")]
40 return this.FirstOrDefault(profile => profile.Platform == PlatformType.Shared);
47 [DataContract(
"PackageProfile")]
52 public const string SharedName =
"Shared";
60 InheritProfiles =
new List<string>();
62 OutputGroupDirectories =
new Dictionary<string, UDirectory>();
63 ProjectReferences =
new List<ProjectReference>();
73 if (name == null)
throw new ArgumentNullException(
"name");
86 if (name == null)
throw new ArgumentNullException(
"name");
88 AssetFolders.AddRange(folders);
97 public string Name {
get; set; }
111 public List<string> InheritProfiles {
get;
private set; }
131 public Dictionary<string, UDirectory> OutputGroupDirectories {
get;
private set; }
145 public List<ProjectReference> ProjectReferences {
get;
private set; }
154 sharedProfile.AssetFolders.Add(
new AssetFolder(
"Assets/" + SharedName));
155 return sharedProfile;
PackageProfile(string name, params AssetFolder[] folders)
Initializes a new instance of the PackageProfile class.
PlatformType
Describes the platform operating system.
A location relative to a package from where assets will be loaded
PackageProfile FindSharedProfile()
Finds a shared profile (a profile that is not platform specific)
override PlatformType GetKeyForItem(PackageProfile item)
static PackageProfile NewShared()
Creates a a default shared package profile.
PackageProfile(string name)
Initializes a new instance of the PackageProfile class.
A collection of PackageProfile.
PackageProfile()
Initializes a new instance of the PackageProfile class.
A collection of properties.
A collection of AssetFolder
Describes buld parameters used when building assets.
PackageProfileCollection()
Initializes a new instance of the PackageProfileCollection class.