varollo.asepriteimporter.mg.asepriteanimator - Varollo/aseprite-importer GitHub Wiki
Namespace: Varollo.AsepriteImporter.MG
Handles all AsepriteAnimation on a
public class AsepriteAnimator
Inheritance Object → AsepriteAnimator
Initializes a AsepriteAnimator for a using a IAnimationCounter
public AsepriteAnimator(IAnimationCounter counter, AsepriteSheet sheet)
counter
IAnimationCounter
Object responsible for increasing animation frame. Such as DrawTimeCounter.
sheet
AsepriteSheet
Sprite sheet deserialized using
Retrieves an animation by or .
public AsepriteAnimation GetAnimation(string name)
name
String
Name or tag key for the animation.
AsepriteAnimation
Found animation of given name key.
ArgumentException
Thrown when no animation is found with that name key.
Retrieves the current frame () for an animation using the or .
public Rectangle GetFrame(string name)
name
String
Name or tag key for the animation.
Rectangle
Rectangle corresponding to the of the current frame of animation.