using System;
using Microsoft.Xna.Framework.Graphics;

namespace ECOT.Engine
{
    /// <summary>
    /// 
    /// </summary>
    public class SpriteFrame
    {
        #region Initialization

        /// <summary>
        /// 
        /// </summary>
        /// <param name="texture"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="duration"></param>
        public SpriteFrame(Texture2D texture, int x, int y, int width, int height, float duration)
        {
            Texture = texture;
            X = x;
            Y = y;
            Width = width;
            Height = height;
            Duration = duration;
        }

        #endregion

        #region Properties

        /// <summary>
        /// 
        /// </summary>
        public Texture2D Texture;

        /// <summary>
        /// 
        /// </summary>
        public int X;

        /// <summary>
        /// 
        /// </summary>
        public int Y;

        /// <summary>
        /// 
        /// </summary>
        public int Width;

        /// <summary>
        /// 
        /// </summary>
        public int Height;

        /// <summary>
        /// 
        /// </summary>
        public float Duration;

        #endregion
    }
}
