Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SoundEffectAsset.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("SoundEffect")]
10  [AssetFileExtension(FileExtension)]
11  [AssetFactory(typeof(SoundEffectFactory))]
12  [AssetCompiler(typeof(SoundAssetCompiler))]
13  [ThumbnailCompiler(PreviewerCompilerNames.SoundThumbnailCompilerQualifiedName)]
14  [AssetDescription("Sound Effect", "A sound effect", false)]
16  {
17  private class SoundEffectFactory : IAssetFactory
18  {
19  public Asset New()
20  {
21  return new SoundEffectAsset();
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.