Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetToImport.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.Diagnostics;
6 using SiliconStudio.Core.Diagnostics;
7 using SiliconStudio.Core.IO;
8 
9 namespace SiliconStudio.Assets
10 {
11  /// <summary>
12  /// A raw asset being imported that will generate possibly multiple <see cref="AssetItem"/>
13  /// </summary>
14  [DebuggerDisplay("Import [{File}] Importers [{ByImporters.Count}]")]
15  public class AssetToImport
16  {
17  private readonly UFile file;
18 
19  /// <summary>
20  /// Initializes a new instance of the <see cref="AssetToImport"/> class.
21  /// </summary>
22  /// <param name="file">The file.</param>
23  /// <exception cref="System.ArgumentNullException">file</exception>
24  internal AssetToImport(UFile file)
25  {
26  if (file == null) throw new ArgumentNullException("file");
27  this.file = file;
28  ByImporters = new List<AssetToImportByImporter>();
29  Enabled = true;
30  }
31 
32  /// <summary>
33  /// Gets the file/raw asset being imported.
34  /// </summary>
35  /// <value>The file.</value>
36  public UFile File
37  {
38  get
39  {
40  return file;
41  }
42  }
43 
44  /// <summary>
45  /// Gets the list of importers and asset to import by importers.
46  /// </summary>
47  /// <value>The by importers.</value>
48  public List<AssetToImportByImporter> ByImporters { get; private set; }
49 
50  /// <summary>
51  /// Gets or sets a value indicating whether this <see cref="AssetToImport"/> is enabled.
52  /// </summary>
53  /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
54  public bool Enabled { get; set; }
55 
56  internal Package Package { get; set; }
57 
58  internal UDirectory Directory { get; set; }
59  }
60 }
Defines a normalized directory path. See UPath for details. This class cannot be inherited.
Definition: UDirectory.cs:13
A raw asset being imported that will generate possibly multiple AssetItem
System.IO.File File
A package managing assets.
Definition: Package.cs:28
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13