Interface IAnimationCallback
- Namespace
- LibGFX.Graphics.Animation2D
- Assembly
- LibGFX.dll
Represents a callback interface for 2D animations.
public interface IAnimationCallback
Properties
Active
Determines if the animation callback is active.
bool Active { get; set; }
Property Value
Animation
The animation associated with the callback.
Animation2D Animation { get; set; }
Property Value
TriggerFrames
Gets the list of trigger frames for the animation callback.
IEnumerable<int> TriggerFrames { get; }
Property Value
Methods
OnAnimationEnd(int)
Called when the animation ends.
void OnAnimationEnd(int frame)
Parameters
frameint
OnTriggered(int)
Called when the animation is triggered.
void OnTriggered(int frame)
Parameters
frameint