C# Class Vtj.Gaming.GameSystem

Provides a framework for game subsystems to be easily reused among scenes
Inheritance: IDisposable
Afficher le fichier Open project: Ventajou/Space-Dinosaurs Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Override to clean up any resource used.

Init ( Scene level ) : void

Called when the scene is being initialized.

Load ( ) : void

Called when all resources have been loaded.

Pause ( ) : void

Called when the game is paused.

Resume ( ) : void

Called when the game is resumed from pause.

Update ( System.Html.Media.Graphics.CanvasContext2D context ) : void

Called at each iterarion.

Method Details

Dispose() public méthode

Override to clean up any resource used.
public Dispose ( ) : void
Résultat void

Init() public abstract méthode

Called when the scene is being initialized.
public abstract Init ( Scene level ) : void
level Scene The game scene that this instance is attached to
Résultat void

Load() public méthode

Called when all resources have been loaded.
public Load ( ) : void
Résultat void

Pause() public méthode

Called when the game is paused.
public Pause ( ) : void
Résultat void

Resume() public méthode

Called when the game is resumed from pause.
public Resume ( ) : void
Résultat void

Update() public abstract méthode

Called at each iterarion.
public abstract Update ( System.Html.Media.Graphics.CanvasContext2D context ) : void
context System.Html.Media.Graphics.CanvasContext2D
Résultat void