C# Class Indiefreaks.Xna.Core.LoadingGameState

The LoadingGameState class is the base class that you should use to render loading screens while other game states are loading.
The default behavior is set to wait 1 sec once the other GameState is loaded. If you want to change it, just override the OnGameStateLoadingCompleted method
Inheritance: GameState
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Load ( ) : void

Loads content directly.

Méthodes protégées

Méthode Description
LoadingGameState ( string name, Application application ) : System

Creates a new instance of the LoadingGameState

OnGameStateLoadingCompleted ( object sender, EventArgs e ) : void

Occurs once the GameState is loaded; Unregisters from the LoadingCompleted event and waits 1 sec before switching to GameState rendering

Method Details

Load() public méthode

Loads content directly.
public Load ( ) : void
Résultat void

LoadingGameState() protected méthode

Creates a new instance of the LoadingGameState
protected LoadingGameState ( string name, Application application ) : System
name string
application Application
Résultat System

OnGameStateLoadingCompleted() protected méthode

Occurs once the GameState is loaded; Unregisters from the LoadingCompleted event and waits 1 sec before switching to GameState rendering
protected OnGameStateLoadingCompleted ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void