Skip to main content

AnimationEndEventArgs

Namespace: MonineEngine.Graphics.Animations

Event arguments covering details on a finished animation.

public class AnimationEndEventArgs : System.EventArgs

Inheritance ObjectEventArgsAnimationEndEventArgs
Attributes NullableContextAttribute, NullableAttribute

Properties

Animation

The Animation that finished.

public Animation Animation { get; }

Property Value

Animation

FinalFrameIndex

The index of the final frame of animation in the Frames list within AnimationEndEventArgs.Animation.

public int FinalFrameIndex { get; }

Property Value

Int32

Loops

If true, the animation that finished is due to loop back to the start. If false, the animation is not due to loop, and will stay frozen at the final frame until manually changed.

public bool Loops { get; }

Property Value

Boolean

Constructors

AnimationEndEventArgs(Animation, Boolean)

public AnimationEndEventArgs(Animation animation, bool loops)

Parameters

animation Animation

loops Boolean