#region File Description
//-----------------------------------------------------------------------------
// ModelAnimationClip.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content;
namespace CustomModelAnimation
{
///
/// A model 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 model animation.
///
public class ModelAnimationClip
{
///
/// Gets the total length of the model animation clip
///
[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; }
///
/// Constructs a new model animation clip object.
///
public ModelAnimationClip(TimeSpan duration, List keyframes)
{
Duration = duration;
Keyframes = keyframes;
}
///
/// Private constructor for use by the XNB deserializer.
///
private ModelAnimationClip()
{
}
}
}