Class Animation
Represents an animation definition with details such as name, starting cell, row, and number of frames.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public class Animation
Constructors
Animation()
Initializes a new instance of the Animation class.
Declaration
public Animation()
Animation(string, int, int, int)
Initializes a new instance of the Animation class with specified parameters.
Declaration
public Animation(string name, int cell, int row, int frames)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the animation. |
int | cell | The starting cell index of the animation. |
int | row | The row index in the animation sheet. |
int | frames | The number of frames in the animation. |
Properties
Cell
Gets or sets the starting cell index of the animation.
Declaration
public int Cell { get; set; }
Property Value
Type | Description |
---|---|
int |
Frames
Gets or sets the number of frames in the animation.
Declaration
public int Frames { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
Gets or sets the name of the animation.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Row
Gets or sets the row index in the animation sheet.
Declaration
public int Row { get; set; }
Property Value
Type | Description |
---|---|
int |