Method | 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.
|
Method | 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. |
return | void |
public Subscribe ( IUpdateable updateable ) : void | ||
updateable | IUpdateable | The IUpdateable. |
return | void |
public Unsubscribe ( IDrawable drawable ) : void | ||
drawable | IDrawable | The IDrawable. |
return | void |
public Unsubscribe ( IUpdateable updateable ) : void | ||
updateable | IUpdateable | The IUpdateable. |
return | void |