4 using System.Collections.Generic;
5 using System.Diagnostics;
7 using SiliconStudio.Core.Diagnostics;
9 namespace SiliconStudio.Assets
15 [DebuggerDisplay(
"Importer: {Importer.GetType().Name} Items: [{Items.Count}]")]
22 if (parent == null)
throw new ArgumentNullException(
"parent");
23 if (importer == null)
throw new ArgumentNullException(
"importer");
25 this.importer = importer;
26 this.Items =
new List<AssetToImportMergeGroup>();
29 ImporterParameters = importer.GetDefaultParameters(previousItem != null);
30 ImporterParameters.Logger =
Log;
31 PreviousItem = previousItem;
72 return Log.HasErrors || Items.Any(item => item.Log.HasErrors);
80 public List<AssetToImportMergeGroup> Items {
get;
private set; }
86 public bool Enabled {
get; set; }
93 internal AssetItem PreviousItem {
get;
private set; }
SiliconStudio.Core.Diagnostics.LoggerResult LoggerResult
A logger that stores messages locally useful for internal log scenarios.
Parameters used by IAssetImporter.Import
An asset item part of a Package accessible through SiliconStudio.Assets.Package.Assets.
A raw asset being imported that will generate possibly multiple AssetItem
string Name
Gets the name of this importer.
Imports a raw asset into the asset system.
Describes the importer that will import an AssetToImport and the generated list of assets to import...
Output message to log right away.