Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SoundMusicAsset.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 SiliconStudio.Assets;
4 using SiliconStudio.Assets.Compiler;
5 using SiliconStudio.Core;
6 
7 namespace SiliconStudio.Paradox.Assets.Audio
8 {
9  [DataContract("SoundMusic")]
10  [AssetFileExtension(FileExtension)]
11  [AssetFactory(typeof(SoundMusicFactory))]
12  [AssetCompiler(typeof(SoundAssetCompiler))]
13  [ThumbnailCompiler(PreviewerCompilerNames.SoundThumbnailCompilerQualifiedName)]
14  [AssetDescription("Sound Music", "A music track", false)]
15  public class SoundMusicAsset : SoundAsset
16  {
17  private class SoundMusicFactory : IAssetFactory
18  {
19  public Asset New()
20  {
21  return new SoundMusicAsset();
22  }
23  }
24  }
25 }
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.