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

_UpdateableManager

You can directly use an instance of this class. UpdateableManager

Extends:

Manager → _UpdateableManager

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
public

update()

Public Constructors

public constructor() source

Constructor for UpdateableManager. Holds the static ID counter.

Override:

Manager#constructor

Public Members

public updateableIDCounter: number source

Public 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:

NameTypeAttributeDescription
updateable Updateable

The updateable to be registered.

Return:

*