Table of Contents

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

bool

Animation

The animation associated with the callback.

Animation2D Animation { get; set; }

Property Value

Animation2D

TriggerFrames

Gets the list of trigger frames for the animation callback.

IEnumerable<int> TriggerFrames { get; }

Property Value

IEnumerable<int>

Methods

OnAnimationEnd(int)

Called when the animation ends.

void OnAnimationEnd(int frame)

Parameters

frame int

OnTriggered(int)

Called when the animation is triggered.

void OnTriggered(int frame)

Parameters

frame int