Class AnimationCallback
Represents a callback for a specific frame in an animation.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public class AnimationCallback
Constructors
AnimationCallback()
Initializes a new instance of the AnimationCallback class.
Declaration
public AnimationCallback()
AnimationCallback(string, int, AnimationEvent)
Initializes a new instance of the AnimationCallback class with specified animation name, frame, and callback.
Declaration
public AnimationCallback(string animationName, int frame, AnimationCallback.AnimationEvent callback)
Parameters
Type | Name | Description |
---|---|---|
string | animationName | The name of the animation. |
int | frame | The frame number at which the callback is triggered. |
AnimationCallback.AnimationEvent | callback | The callback method to be invoked. |
Properties
AnimationName
Gets or sets the name of the animation.
Declaration
public string AnimationName { get; set; }
Property Value
Type | Description |
---|---|
string |
Callback
Gets or sets the callback method to be invoked.
Declaration
public AnimationCallback.AnimationEvent Callback { get; set; }
Property Value
Type | Description |
---|---|
AnimationCallback.AnimationEvent |
CallbackRised
Gets or sets a value indicating whether an animation callback has been triggered.
Declaration
public bool CallbackRised { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Frame
Gets or sets the frame number at which the callback is triggered.
Declaration
public int Frame { get; set; }
Property Value
Type | Description |
---|---|
int |