Class Animation
- Namespace
- Alis.Core.Ecs.Component.Render
- Assembly
- Alis.dll
The animation class
public class Animation : IBuilder<AnimatorBuilder>
Inheritance
Implements
Inherited Members
Constructors
Animation()
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Animation class
public Animation()
Animation(List<Frame>)
Initializes a new instance of the Alis.Core.Ecs.Component.Render.Animation class
public Animation(List<Frame> textures)
Parameters
Properties
Frames
Gets or sets the value of the textures
internal List<Frame> Frames { get; }
Property Value
Index
Gets or sets the value of the index
private int Index { get; set; }
Property Value
Name
Gets or sets the value of the name
public string Name { get; set; }
Property Value
Order
Gets or sets the value of the order
public int Order { get; set; }
Property Value
Speed
Gets or sets the value of the speed
public float Speed { get; set; }
Property Value
Methods
AddFrame(Frame)
Adds the frame using the specified frame
public void AddFrame(Frame frame)
Parameters
frame
Frame-
The frame
Builder()
Builders this instance
public AnimatorBuilder Builder()
Returns
- AnimatorBuilder
-
The animator builder
HasNext()
Describes whether this instance has next
public bool HasNext()
Returns
- bool
-
The bool
NextTexture()
Nexts the texture
public Frame NextTexture()
Returns
- Frame
-
The texture