C# Class Vtj.Gaming.GameSystem

Provides a framework for game subsystems to be easily reused among scenes
Inheritance: IDisposable
ファイルを表示 Open project: Ventajou/Space-Dinosaurs Class Usage Examples

Public Methods

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

Override to clean up any resource used.
public Dispose ( ) : void
return void

Init() public abstract method

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

Load() public method

Called when all resources have been loaded.
public Load ( ) : void
return void

Pause() public method

Called when the game is paused.
public Pause ( ) : void
return void

Resume() public method

Called when the game is resumed from pause.
public Resume ( ) : void
return void

Update() public abstract method

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