/// <summary>
 /// Initializes a new instance of the <see cref="AssetImportSessionEvent"/> class.
 /// </summary>
 /// <param name="type">The step.</param>
 /// <param name="step">The Step.</param>
 /// <param name="toImportByImporter">To import by importer.</param>
 /// <exception cref="System.ArgumentNullException">toImportByImporter</exception>
 public AssetImportSessionEvent(AssetImportSessionEventType type, AssetImportSessionStepType step, AssetToImportByImporter toImportByImporter)
 {
     if (toImportByImporter == null) throw new ArgumentNullException("toImportByImporter");
     Type = type;
     Step = step;
     ToImportByImporter = toImportByImporter;
     ToImport = null;
 }
 internal AssetToImportMergeGroup(AssetToImportByImporter parent, AssetItem item)
 {
     if (parent == null) throw new ArgumentNullException("parent");
     if (item == null) throw new ArgumentNullException("item");
     this.Parent = parent;
     Item = item;
     Merges = new List<AssetToImportMerge>();
     Enabled = true;
     var assetDescription = DisplayAttribute.GetDisplay(item.Asset.GetType());
     Log = new LoggerResult(string.Format("Import {0} {1}", assetDescription != null ? assetDescription.Name : "Asset" , item));
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssetImportSessionEvent"/> class.
 /// </summary>
 /// <param name="type">The step.</param>
 /// <param name="step">The Step.</param>
 /// <param name="toImportByImporter">To import by importer.</param>
 /// <exception cref="System.ArgumentNullException">toImportByImporter</exception>
 public AssetImportSessionEvent(AssetImportSessionEventType type, AssetImportSessionStepType step, AssetToImportByImporter toImportByImporter)
 {
     if (toImportByImporter == null)
     {
         throw new ArgumentNullException("toImportByImporter");
     }
     Type = type;
     Step = step;
     ToImportByImporter = toImportByImporter;
     ToImport           = null;
 }
예제 #4
0
        internal AssetToImportMergeGroup(AssetToImportByImporter parent, AssetItem item)
        {
            if (parent == null)
            {
                throw new ArgumentNullException("parent");
            }
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            this.Parent = parent;
            Item        = item;
            Merges      = new List <AssetToImportMerge>();
            Enabled     = true;
            var assetDescription = DisplayAttribute.GetDisplay(item.Asset.GetType());

            Log = new LoggerResult(string.Format("Import {0} {1}", assetDescription != null ? assetDescription.Name : "Asset", item));
        }