Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetImporterBase.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 SiliconStudio.Core.IO;
6 
7 namespace SiliconStudio.Assets
8 {
9  public abstract class AssetImporterBase : IAssetImporter
10  {
11  public abstract Guid Id { get; }
12 
13  public virtual string Name
14  {
15  get
16  {
17  return GetType().Name;
18  }
19  }
20 
21  public abstract string Description { get; }
22 
23  public abstract string SupportedFileExtensions { get; }
24 
25  public virtual int DisplayRank
26  {
27  get
28  {
29  return 100;
30  }
31  }
32 
33  public abstract AssetImporterParameters GetDefaultParameters(bool isForReImport);
34 
35  public abstract IEnumerable<AssetItem> Import(UFile rawAssetPath, AssetImporterParameters importParameters);
36  }
37 }
Parameters used by IAssetImporter.Import
Imports a raw asset into the asset system.
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13