Files
quro-animation-tools/QURO.AnimationLibrary/Frame.cs
T
quinnvoker 3e24ac9527 Extensions & Frame Restructuring
Implemented Custom Extensions for SpriteMaps (*.smap), Animations (*.anim) and AnimationSets (*.animset).

Also restructured Frame to be a container for SpriteMapRegions rather than an extension of them. This will enable easier access to updating them when loading SpriteMaps in the Editor.
2018-11-25 21:28:32 -08:00

26 lines
613 B
C#

using QURO;
using Microsoft.Xna.Framework;
namespace QURO.AnimationLibrary
{
public class Frame
{
public SpriteMapRegion Sprite { get; set; }
public float Delay { get; set; }
public string Name { get { return Sprite.Name; } }
public Rectangle Bounds { get { return Sprite.Bounds; } }
public Vector2 Origin { get { return Sprite.Origin; } }
public Frame() : this(new SpriteMapRegion(), 0)
{
}
public Frame(SpriteMapRegion sprite, float delay)
{
Sprite = sprite;
Delay = delay;
}
}
}