Skip to main content

SceneManager

SceneManager

Kind: global class

new SceneManager(entityManager, clock)

ParamType
entityManagerEntityManager
clockClock

sceneManager.current_scene ⇒ Scene | null

Kind: instance property of SceneManager

sceneManager.entity_manager ⇒ EntityManager | null

Kind: instance property of SceneManager

sceneManager.scenes : List.<Scene>

Kind: instance property of SceneManager

sceneManager.clock : Clock

Kind: instance property of SceneManager

sceneManager.create(name) ⇒ Scene

Kind: instance method of SceneManager

ParamType
namestring

sceneManager.add(scene)

Kind: instance method of SceneManager

ParamType
sceneScene

sceneManager.indexByName(name) ⇒ number

Kind: instance method of SceneManager

ParamType
namestring

sceneManager.getByName(name) ⇒ Scene | T | undefined

Kind: instance method of SceneManager

ParamType
namestring

sceneManager.remove(name) ⇒ boolean

Kind: instance method of SceneManager

ParamType
namestring

sceneManager.clear() ⇒ SceneManager

Kind: instance method of SceneManager

sceneManager.exists(name) ⇒ boolean

Kind: instance method of SceneManager

ParamType
namestring

sceneManager.set(name)

Kind: instance method of SceneManager

ParamType
namestring

sceneManager.stackPush(id)

Kind: instance method of SceneManager

ParamType
idstring

sceneManager.stackPop() ⇒ string

Kind: instance method of SceneManager
Returns: string - ID of the popped scene

sceneManager.stackDrop()

Clear out current stack of scenes

Kind: instance method of SceneManager

SceneManager.SceneManager : EntityManager

Kind: static property of SceneManager