C# Class Sharpex2D.GameLoop

Inheritance: IComponent
Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode Description
GameLoop ( ) : System

Initializes a new GameLoop class.

Start ( ) : void

Starts the game loop.

Stop ( ) : void

Stops the game loop.

Subscribe ( IDrawable drawable ) : void

Subscribes a new IDrawable to the game loop.

Subscribe ( IUpdateable updateable ) : void

Subscribes a new IUpdateable to the game loop.

Unsubscribe ( IDrawable drawable ) : void

Unsubscribes a IDrawable from the game loop.

Unsubscribe ( IUpdateable updateable ) : void

Unsubscribes a IUpdateable from the game loop.

Private Methods

Méthode Description
Loop ( ) : void

The actual game loop.

RenderSubscribers ( ) : void

Renders the subscribers.

UpdateSubscribers ( ) : void

Updates the subscribers.

Method Details

GameLoop() public méthode

Initializes a new GameLoop class.
public GameLoop ( ) : System
Résultat System

Start() public méthode

Starts the game loop.
public Start ( ) : void
Résultat void

Stop() public méthode

Stops the game loop.
public Stop ( ) : void
Résultat void

Subscribe() public méthode

Subscribes a new IDrawable to the game loop.
public Subscribe ( IDrawable drawable ) : void
drawable IDrawable The IDrawable.
Résultat void

Subscribe() public méthode

Subscribes a new IUpdateable to the game loop.
public Subscribe ( IUpdateable updateable ) : void
updateable IUpdateable The IUpdateable.
Résultat void

Unsubscribe() public méthode

Unsubscribes a IDrawable from the game loop.
public Unsubscribe ( IDrawable drawable ) : void
drawable IDrawable The IDrawable.
Résultat void

Unsubscribe() public méthode

Unsubscribes a IUpdateable from the game loop.
public Unsubscribe ( IUpdateable updateable ) : void
updateable IUpdateable The IUpdateable.
Résultat void