Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
        }