Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SpriteGroupAsset.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.Collections.Generic;
4 
5 using SiliconStudio.Assets;
6 using SiliconStudio.Assets.Compiler;
7 using SiliconStudio.Core;
8 
9 namespace SiliconStudio.Paradox.Assets.Sprite
10 {
11  /// <summary>
12  /// Describes a sprite group asset.
13  /// </summary>
14  [DataContract("SpriteGroup")]
15  [AssetFileExtension(FileExtension)]
16  [AssetCompiler(typeof(SpriteGroupCompiler))]
17  [AssetFactory(typeof(SpriteGroupFactory))]
18  [ThumbnailCompiler(PreviewerCompilerNames.SpriteGroupThumbnailCompilerQualifiedName)]
19  [AssetDescription("Sprite Group", "A group of sprites", true)]
20  public sealed class SpriteGroupAsset : ImageGroupAsset<SpriteInfo>
21  {
22  /// <summary>
23  /// The default file extension used by the <see cref="SpriteGroupAsset"/>.
24  /// </summary>
25  public const string FileExtension = ".pdxsprite";
26 
27  private class SpriteGroupFactory : IAssetFactory
28  {
29  public Asset New()
30  {
31  return new SpriteGroupAsset();
32  }
33  }
34  }
35 }
Base class for Asset.
Definition: Asset.cs:14
Interface to create default instance of an asset type.
Definition: IAssetFactory.cs:8
Contains user-friendly names and descriptions of an asset type.
Describes an image group asset.