AvatarExpressionKeyframe.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // AvatarKeyframe.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using Microsoft.Xna.Framework;
  12. using Microsoft.Xna.Framework.Content;
  13. using Microsoft.Xna.Framework.GamerServices;
  14. #endregion
  15. namespace CustomAvatarAnimation
  16. {
  17. /// <summary>
  18. /// Describes the position of a single bone at a single point in time.
  19. /// </summary>
  20. public struct AvatarExpressionKeyFrame
  21. {
  22. /// <summary>
  23. /// The time offset from the start of the animation to this keyframe.
  24. /// </summary>
  25. public TimeSpan Time;
  26. /// <summary>
  27. /// The AvatarExpression to use at this keyframe
  28. /// </summary>
  29. public AvatarExpression Expression;
  30. #region Initialization
  31. /// <summary>
  32. /// Constructs a new AvatarExpressionKeyFrame object.
  33. /// </summary>
  34. public AvatarExpressionKeyFrame(TimeSpan time, AvatarExpression expression)
  35. {
  36. Time = time;
  37. Expression = expression;
  38. }
  39. #endregion
  40. }
  41. }