#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;
#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, IList keyframes)
{
durationValue = duration;
keyframesValue = keyframes;
}
///
/// Gets the total length of the animation.
///
public TimeSpan Duration
{
get { return durationValue; }
}
TimeSpan durationValue;
///
/// Gets a combined list containing all the keyframes for all bones,
/// sorted by time.
///
public IList Keyframes
{
get { return keyframesValue; }
}
IList keyframesValue;
}
}