#region File Description //----------------------------------------------------------------------------- // AnimationClip.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework.Content; #endregion namespace SkinnedModel { /// /// An animation clip is the runtime equivalent of the /// Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationContent type. /// It holds all the keyframes needed to describe a single animation. /// public class AnimationClip { /// /// Constructs a new animation clip object. /// public AnimationClip(TimeSpan duration, List keyframes) { Duration = duration; Keyframes = keyframes; } /// /// Private constructor for use by the XNB deserializer. /// private AnimationClip() { } /// /// Gets the total length of the animation. /// [ContentSerializer] public TimeSpan Duration { get; private set; } /// /// Gets a combined list containing all the keyframes for all bones, /// sorted by time. /// [ContentSerializer] public List Keyframes { get; private set; } } }