C# Класс 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
Наследование: GameState
Показать файл Открыть проект Примеры использования класса

Private Properties

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

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

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

Loads content directly.

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

Метод Описание
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

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

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

Loads content directly.
public Load ( ) : void
Результат void

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

Creates a new instance of the LoadingGameState
protected LoadingGameState ( string name, Application application ) : System
name string
application Application
Результат System

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

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
Результат void