C# Класс Myre.StateManagement.Transition

A class which represents a transition.
Показать файл Открыть проект

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

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

Makes the transition move towards 0.

MoveOn ( ) : void

Makes the transition move towards 1.

Transition ( System.TimeSpan duration ) : System

Creates a new instance of the Transition class.

Transition ( System.TimeSpan onDuration, System.TimeSpan offDuration ) : System

Creates a new instance of the Transition class.

Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void

Updates the transition.

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

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

Makes the transition move towards 0.
public MoveOff ( ) : void
Результат void

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

Makes the transition move towards 1.
public MoveOn ( ) : void
Результат void

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

Creates a new instance of the Transition class.
public Transition ( System.TimeSpan duration ) : System
duration System.TimeSpan The time taken to transition on or off.
Результат System

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

Creates a new instance of the Transition class.
public Transition ( System.TimeSpan onDuration, System.TimeSpan offDuration ) : System
onDuration System.TimeSpan The time taken to transition from 0 to 1.
offDuration System.TimeSpan The time taken to transition from 1 to 0.
Результат System

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

Updates the transition.
public Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Game time.
Результат void