Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AdditiveAnimationAsset.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.Core;
5 using SiliconStudio.Core.IO;
6 
7 namespace SiliconStudio.Paradox.Assets.Model
8 {
9  [DataContract("AdditiveAnimation")]
10  [AssetFactory(typeof(AdditiveAnimationFactory))]
11  [AssetDescription("Additive Animation", "An additive skeletal animation", false)]
13  {
14  /// <summary>
15  /// Gets or sets the path to the base source animation model when using additive animation.
16  /// </summary>
17  /// <value>The source.</value>
18  [DataMember(30)]
19  public UFile BaseSource { get; set; }
20 
21  [DataMember(40)]
22  public AdditiveAnimationBaseMode Mode { get; set; }
23 
24  private class AdditiveAnimationFactory : IAssetFactory
25  {
26  public Asset New()
27  {
28  return new AdditiveAnimationAsset();
29  }
30  }
31  }
32 
33  [DataContract]
35  {
36  // TODO: Add support for reference pose (need to add the concept to AnimationClip?)
37  //ReferencePose = 0,
38 
39  /// <summary>
40  /// Uses first frame of animation.
41  /// </summary>
42  FirstFrame = 1,
43 
44  /// <summary>
45  /// Uses animation.
46  /// </summary>
47  Animation = 2,
48  }
49 }
Uses first frame of animation.
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.
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13