#region File Description
//-----------------------------------------------------------------------------
// AvatarKeyframe.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
#endregion
#region Using Statements
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
#endregion
namespace CustomAvatarAnimation
{
///
/// Describes the position of a single bone at a single point in time.
///
public struct AvatarKeyFrame
{
///
/// The index of the target bone that is animated by this keyframe.
///
public int Bone;
///
/// The time offset from the start of the animation to this keyframe.
///
public TimeSpan Time;
///
/// The bone transform for this keyframe.
///
public Matrix Transform;
#region Initialization
///
/// Constructs a new AvatarKeyFrame object.
///
public AvatarKeyFrame(int bone, TimeSpan time, Matrix transform)
{
Bone = bone;
Time = time;
Transform = transform;
}
#endregion
}
}