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.
|
Méthode | Description | |
---|---|---|
Loop ( ) : void |
The actual game loop.
|
|
RenderSubscribers ( ) : void |
Renders the subscribers.
|
|
UpdateSubscribers ( ) : void |
Updates the subscribers.
|
public Subscribe ( IDrawable drawable ) : void | ||
drawable | IDrawable | The IDrawable. |
Résultat | void |
public Subscribe ( IUpdateable updateable ) : void | ||
updateable | IUpdateable | The IUpdateable. |
Résultat | void |
public Unsubscribe ( IDrawable drawable ) : void | ||
drawable | IDrawable | The IDrawable. |
Résultat | void |
public Unsubscribe ( IUpdateable updateable ) : void | ||
updateable | IUpdateable | The IUpdateable. |
Résultat | void |