import {_UpdateableManager} from 'seed-engine/src/manager/UpdateableManager.js'
_UpdateableManager
Extends:
Singleton manager that manages all Updateable Objects. All updateable objects are given a global game ID (number) which can be used to distinguish it.
Any object that descends from Updateable will have an ID.
Constructor Summary
Public Constructor | ||
public |
Constructor for UpdateableManager. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
registerUpdateable(updateable: Updateable): * Gives an ID and a way to unsubscribe from the Updateable binding with the manager. |
Inherited Summary
From class Manager | ||
public |
end() |
|
public |
pause() |
|
public |
start() |
|
public |
unpause() |
|
public |
update() |
Public Constructors
public constructor() source
Constructor for UpdateableManager. Holds the static ID counter.
Override:
Manager#constructorPublic Methods
public registerUpdateable(updateable: Updateable): * source
Gives an ID and a way to unsubscribe from the Updateable binding with the manager.
Since the UpdateableManager does nothing to bind the Updateable to the manager, there is no code in the callback assigned. However, the pattern is there to outline a default.
Params:
Name | Type | Attribute | Description |
updateable | Updateable | The updateable to be registered. |
Return:
* |