51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
using QURO;
|
|
using Microsoft.Xna.Framework;
|
|
|
|
namespace QURO.AnimationLibrary
|
|
{
|
|
public class Frame : SpriteMapRegion
|
|
{
|
|
public float Delay { get; set; }
|
|
|
|
public Frame()
|
|
{
|
|
Name = "empty";
|
|
Bounds = Rectangle.Empty;
|
|
Origin = Vector2.Zero;
|
|
Delay = 0;
|
|
}
|
|
|
|
public Frame(SpriteMapRegion sprite, float delay)
|
|
{
|
|
Name = sprite.Name;
|
|
Bounds = sprite.Bounds;
|
|
Origin = sprite.Origin;
|
|
Delay = delay;
|
|
}
|
|
|
|
public Frame(string name, Rectangle bounds, float delay, Vector2 origin)
|
|
{
|
|
Name = name;
|
|
Bounds = bounds;
|
|
Origin = origin;
|
|
Delay = delay;
|
|
}
|
|
|
|
public Frame(Rectangle bounds, float delay, Vector2 origin)
|
|
{
|
|
Name = "unnamed";
|
|
Bounds = bounds;
|
|
Origin = origin;
|
|
Delay = delay;
|
|
}
|
|
|
|
public Frame(Rectangle bounds, float delay)
|
|
{
|
|
Name = "unnamed";
|
|
Bounds = bounds;
|
|
Origin = Vector2.Zero;
|
|
Delay = delay;
|
|
}
|
|
}
|
|
}
|