Home Reference Source Test
import {_PersistentManager} from 'seed-engine/src/manager/PersistentManager.js'
private class | source

_PersistentManager

You can directly use an instance of this class. PersistentManager

Extends:

Manager → _PersistentManager

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

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
public

update()

Public Constructors

public constructor() source

Override:

Manager#constructor

Public Members

public persistentObjects: {} source

Public Methods

public end() source

Calls end on all Persistent Objects.

Override:

Manager#end

public pause() source

Calls pause on all Persistent Objects.

Override:

Manager#pause

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:

NameTypeAttributeDescription
persistentObject persistentObject

A PersistentObject.

Return:

*

public unpause() source

Calls unpause on all Persistent Objects.

Override:

Manager#unpause

public update() source

Calls update on all Persistent Objects.

Override:

Manager#update