varollo.asepriteimporter.mg.drawcounterbase - Varollo/aseprite-importer GitHub Wiki
Namespace: Varollo.AsepriteImporter.MG
Counter used by a AsepriteAnimator.
Count changes during the method,
while = true
.
public abstract class DrawCounterBase : IAnimationCounter, Microsoft.Xna.Framework.IGameComponent, Microsoft.Xna.Framework.IDrawable
Inheritance Object → DrawCounterBase
Implements IAnimationCounter, IGameComponent, IDrawable
public int DrawOrder { get; }
public bool Visible { get; private set; }
Initializes a DrawTimeCounter as a component of given instance.
public DrawCounterBase(Game game, int drawOrder)
game
Game
instance.
drawOrder
Int32
[optional] Order to count passed time, among other components.
Initializes a DrawTimeCounter and adds it to a
public DrawCounterBase(GameComponentCollection components, int drawOrder)
components
GameComponentCollection
to add counter instance.
drawOrder
Int32
[optional] Order to count passed time, among other components.
public double GetCount()
Enables or disables the counter.
public void SetVisibility(bool visible)
visible
Boolean
Visibility state.
public void Initialize()
public void Draw(GameTime gameTime)
gameTime
GameTime
Computes AsepriteAnimation frame count changes.
protected abstract double Count(GameTime gameTime)
gameTime
GameTime
Time information.
Double
Value to add(+) to animation counter.
public event EventHandler<EventArgs> DrawOrderChanged;
public event EventHandler<EventArgs> VisibleChanged;