C# Класс SunsetHigh.ScreenTransition

Handles the fade in and out between different screens or scenes.
Показать файл Открыть проект

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

Метод Описание
draw ( SpriteBatch sb ) : void
isTransitioning ( ) : bool
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
requestSimpleTransition ( GameState stateChange ) : void
requestTransition ( System.Action action ) : void

Starts a fade out. The given Action is a delegate for whatever should be executed between the fade out and fade in (e.g. load a new screen).

update ( float elapsed ) : void

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

draw() публичный статический Метод

public static draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

isTransitioning() публичный статический Метод

public static isTransitioning ( ) : bool
Результат bool

loadContent() публичный статический Метод

public static loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Результат void

requestSimpleTransition() публичный статический Метод

public static requestSimpleTransition ( GameState stateChange ) : void
stateChange GameState
Результат void

requestTransition() публичный статический Метод

Starts a fade out. The given Action is a delegate for whatever should be executed between the fade out and fade in (e.g. load a new screen).
public static requestTransition ( System.Action action ) : void
action System.Action
Результат void

update() публичный статический Метод

public static update ( float elapsed ) : void
elapsed float
Результат void