FrameInfo

Namespace: Murder.Core
Assembly: Murder.dll

public sealed struct FrameInfo

A struct representing information about a single animation frame, such as its index in the list and a flag indicating whether the animation is complete

⭐ Constructors

public FrameInfo()
public FrameInfo(Animation animation)

Parameters
animation Animation

public FrameInfo(int frame, int internalFrame, bool animationComplete, Animation animation)

Parameters
frame int
internalFrame int
animationComplete bool
animation Animation

⭐ Properties

Animation

public Animation Animation { get; public set; }

Returns
Animation

Complete

public readonly bool Complete;

Whether the animation is complete

Returns
bool

Fail

public static FrameInfo Fail { get; }

Returns
FrameInfo

Failed

public bool Failed { get; public set; }

Returns
bool

Frame

public readonly int Frame;

The index of the current frame

Returns
int

InternalFrame

public readonly int InternalFrame;

The index of the current frame inside the current animation

Returns
int