4 using System.Collections.Generic;
7 using SiliconStudio.Core;
8 using SiliconStudio.Core.Diagnostics;
10 namespace SiliconStudio.Assets
27 SelectedOutputTypes =
new Dictionary<Type, bool>();
46 if (supportedTypes == null)
throw new ArgumentNullException(
"supportedTypes");
47 foreach (var type
in supportedTypes)
49 if (!typeof(
Asset).IsAssignableFrom(type))
51 throw new ArgumentException(
"Invalid type [{0}]. Type must be assignable to Asset".ToFormat(type),
"supportedTypes");
53 SelectedOutputTypes[type] =
true;
61 public Dictionary<Type, bool> SelectedOutputTypes {
get;
private set; }
68 public bool IsTypeSelectedForOutput<T>() where T :
Asset
70 return IsTypeSelectedForOutput(typeof(T));
81 if (SelectedOutputTypes.TryGetValue(type, out isSelected))
92 public bool HasSelectedOutputTypes
96 return SelectedOutputTypes.Count > 0 && SelectedOutputTypes.Any(selectedOutputType => selectedOutputType.Value);
AssetImporterParameters(params Type[] supportedTypes)
Initializes a new instance of the AssetImporterParameters class.
AssetImporterParameters()
Initializes a new instance of the AssetImporterParameters class.
bool IsTypeSelectedForOutput(Type type)
Determines whether the specified type is type selected for output by this importer.
Parameters used by IAssetImporter.Import
Base implementation for ILogger.
AssetImporterParameters(IEnumerable< Type > supportedTypes)
Initializes a new instance of the AssetImporterParameters class.