C# Class PGCGame.Screens.LoadingScreen

A general-purpose async task loading screen.
Inheritance: PGCGame.CoreTypes.BaseScreen
Afficher le fichier Open project: GreatMindsRobotics/PGCGame Class Usage Examples

Méthodes publiques

Свойство Type Description
MinimumTime System.TimeSpan
UserCallback PGCGame.CoreTypes.Delegates.AsyncHandlerMethod
UserCallbackStartsTask bool

Méthodes publiques

Méthode Description
FinishTask ( ) : void

Mark the task as finished.

InitScreen ( ScreenType screenName ) : void
LoadingScreen ( SpriteBatch sb, Color bgColor ) : System
Reset ( ) : void

Reset all fields and events.

Update ( GameTime game ) : void
loadingText_TextChanged ( object sender, EventArgs e ) : void

Private Methods

Méthode Description
AsyncCallBackMethod ( IAsyncResult result ) : void
RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

FinishTask() public méthode

Mark the task as finished.
public FinishTask ( ) : void
Résultat void

InitScreen() public méthode

public InitScreen ( ScreenType screenName ) : void
screenName ScreenType
Résultat void

LoadingScreen() public méthode

public LoadingScreen ( SpriteBatch sb, Color bgColor ) : System
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
bgColor Color
Résultat System

Reset() public méthode

Reset all fields and events.
public Reset ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime game ) : void
game GameTime
Résultat void

loadingText_TextChanged() public méthode

public loadingText_TextChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

MinimumTime public_oe property

public TimeSpan,System MinimumTime
Résultat System.TimeSpan

UserCallback public_oe property

The callback that the user provides to run after the asynchronous operation.
public PGCGame.CoreTypes.Delegates.AsyncHandlerMethod UserCallback
Résultat PGCGame.CoreTypes.Delegates.AsyncHandlerMethod

UserCallbackStartsTask public_oe property

A boolean indicating whether the user callback starts asynchronous work.
public bool UserCallbackStartsTask
Résultat bool