#region File Description
//-----------------------------------------------------------------------------
// AnimationSequence.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion
#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using Microsoft.Xna.Framework;
using RobotGameData.Resource;
#endregion
namespace RobotGameData.GameObject
{
///
/// this is the basic unit of an animation that has key frame of several bones.
/// It can load an XML file(.Animation).
///
[Serializable]
public class AnimationSequence
{
#region Fields
public int KeyFrameSequenceCount = 0;
///
/// KeyFrame duration time
///
public float Duration = 0.0f;
///
/// KeyFrames container
///
public List KeyFrameSequences = null;
#endregion
///
/// Gets the key frame sequence by index
///
public KeyFrameSequence GetKeyFrameSequence(int index)
{
return KeyFrameSequences[index];
}
///
/// Gets the bone name of the key frame sequence
///
///
///
public string GetKeyFrameSequenceBoneName(int index)
{
return GetKeyFrameSequence(index).BoneName;
}
}
}