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
Exibir arquivo Open project: Indiefreaks/igf Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Load ( ) : void

Loads content directly.

Protected Methods

Method 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 method

Loads content directly.
public Load ( ) : void
return void

LoadingGameState() protected method

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

OnGameStateLoadingCompleted() protected method

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
return void