C# Класс WaveEngine.Components.Animation.Animation3D

Наследование: AnimationBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
RefreshAnimationAsset void
UpdateNumFrames void

Открытые методы

Метод Описание
Animation3D ( ) : System

Initializes a new instance of the Animation3D class.

Animation3D ( string animationPath ) : System

Initializes a new instance of the Animation3D class.

Animation3D ( string name, string animationPath ) : System

Initializes a new instance of the Animation3D class.

GetDuration ( string animation ) : float

Gets the duration of an animation.

PlayAnimation ( string name, int startFrame, int endFrame, bool loop = true, bool backwards = false ) : void

Plays the animation.

Plays the animation between the specified frames.

ResumeAnimation ( ) : void

Plays the animation up to a given frame.

Resume the animation.

StopAnimation ( ) : void

Stops the animation.

Защищенные методы

Метод Описание
DefaultValues ( ) : void

The default values

Initialize ( ) : void

Performs further custom initialization for this instance.

Update ( System.TimeSpan gameTime ) : void

Updates the animation.

Приватные методы

Метод Описание
RefreshAnimationAsset ( ) : void

Refresh animation asset

UpdateNumFrames ( ) : void

The update num frames.

Описание методов

Animation3D() публичный Метод

Initializes a new instance of the Animation3D class.
public Animation3D ( ) : System
Результат System

Animation3D() публичный Метод

Initializes a new instance of the Animation3D class.
public Animation3D ( string animationPath ) : System
animationPath string /// The path to the animation data. ///
Результат System

Animation3D() публичный Метод

Initializes a new instance of the Animation3D class.
public Animation3D ( string name, string animationPath ) : System
name string /// The name of this behavior. ///
animationPath string /// The path to the animation data. ///
Результат System

DefaultValues() защищенный Метод

The default values
protected DefaultValues ( ) : void
Результат void

GetDuration() публичный Метод

Gets the duration of an animation.
public GetDuration ( string animation ) : float
animation string /// The animation name. ///
Результат float

Initialize() защищенный Метод

Performs further custom initialization for this instance.
protected Initialize ( ) : void
Результат void

PlayAnimation() публичный Метод

Plays the animation. Plays the animation between the specified frames.
public PlayAnimation ( string name, int startFrame, int endFrame, bool loop = true, bool backwards = false ) : void
name string /////// The name of the animation. ///////
startFrame int /// The frame where the animation starts playing. ///
endFrame int /// The last frame of the animation to play. ///
loop bool /////// if set to true loop the animation. ///////
backwards bool /////// if set to true play the animation backwards. ///////
Результат void

ResumeAnimation() публичный Метод

Plays the animation up to a given frame. Resume the animation.
public ResumeAnimation ( ) : void
Результат void

StopAnimation() публичный Метод

Stops the animation.
public StopAnimation ( ) : void
Результат void

Update() защищенный Метод

Updates the animation.
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan /// The game time. ///
Результат void