Table of Contents

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

textures List<Frame>

The textures

Properties

Frames

Gets or sets the value of the textures

internal List<Frame> Frames { get; }

Property Value

List<Frame>

Index

Gets or sets the value of the index

private int Index { get; set; }

Property Value

int

Name

Gets or sets the value of the name

public string Name { get; set; }

Property Value

string

Order

Gets or sets the value of the order

public int Order { get; set; }

Property Value

int

Speed

Gets or sets the value of the speed

public float Speed { get; set; }

Property Value

float

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

Exceptions

InvalidCastException