import {_PersistentManager} from 'seed-engine/src/manager/PersistentManager.js'
_PersistentManager
Extends:
Manages all Persistent Objects in the Engine. A PersistentObject is a child of GameObject, and sibling of SceneObjects.
PersistentObjects exist and update in all scenes, changing scenes will not inturrupt this object.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
end() Calls end on all Persistent Objects. |
|
public |
pause() Calls pause on all Persistent Objects. |
|
public |
registerPersistentObject(persistentObject: persistentObject): * When a PersistentObject is created, it is assigned to the PersistentManager through this function. |
|
public |
unpause() Calls unpause on all Persistent Objects. |
|
public |
update() Calls update on all Persistent Objects. |
Inherited Summary
From class Manager | ||
public |
end() |
|
public |
pause() |
|
public |
start() |
|
public |
unpause() |
|
public |
update() |
Public Constructors
Public Members
public persistentObjects: {} source
Public Methods
public registerPersistentObject(persistentObject: persistentObject): * source
When a PersistentObject is created, it is assigned to the PersistentManager through this function. The manager will keep reference to the Object and handle Engine events.
Params:
Name | Type | Attribute | Description |
persistentObject | persistentObject | A PersistentObject. |
Return:
* |