4 using System.Collections.Generic;
5 using System.Diagnostics;
6 using SiliconStudio.Assets.Diff;
7 using SiliconStudio.Core.Diagnostics;
9 namespace SiliconStudio.Assets
14 [DebuggerDisplay(
"Item: {Item} Merges: [{Merges.Count}]")]
19 if (parent == null)
throw new ArgumentNullException(
"parent");
20 if (item == null)
throw new ArgumentNullException(
"item");
23 Merges =
new List<AssetToImportMerge>();
25 var assetDescription = AssetRegistry.GetDescription(item.Asset.GetType());
26 Log =
new LoggerResult(
string.Format(
"Import {0} {1}", assetDescription != null ? assetDescription.DisplayName :
"Asset" , item));
45 public List<AssetToImportMerge> Merges {
get;
private set; }
67 return MergedResult != null;
75 public bool Enabled {
get; set; }
Result of a merge. Contains Asset != null if there are no errors.
SiliconStudio.Core.Diagnostics.LoggerResult LoggerResult
A logger that stores messages locally useful for internal log scenarios.
An asset item part of a Package accessible through SiliconStudio.Assets.Package.Assets.
Describes an asset to import associated with possible existing assets, mergeable or not...
Describes the importer that will import an AssetToImport and the generated list of assets to import...
Output message to log right away.