SceneManager
SceneManager
Kind: global class
- SceneManager
- new SceneManager(entityManager, clock)
- instance
- .current_scene ⇒
Scene
|null
- .entity_manager ⇒
EntityManager
|null
- .scenes :
List.<Scene>
- .clock :
Clock
- .create(name) ⇒
Scene
- .add(scene)
- .indexByName(name) ⇒
number
- .getByName(name) ⇒
Scene
|T
|undefined
- .remove(name) ⇒
boolean
- .clear() ⇒
SceneManager
- .exists(name) ⇒
boolean
- .set(name)
- .stackPush(id)
- .stackPop() ⇒
string
- .stackDrop()
- .current_scene ⇒
- static
- .SceneManager :
EntityManager
- .SceneManager :
new SceneManager(entityManager, clock)
Param | Type |
---|---|
entityManager | EntityManager |
clock | Clock |
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
Param | Type |
---|---|
name | string |
sceneManager.add(scene)
Kind: instance method of SceneManager
Param | Type |
---|---|
scene | Scene |
sceneManager.indexByName(name) ⇒ number
Kind: instance method of SceneManager
Param | Type |
---|---|
name | string |
sceneManager.getByName(name) ⇒ Scene
| T
| undefined
Kind: instance method of SceneManager
Param | Type |
---|---|
name | string |
sceneManager.remove(name) ⇒ boolean
Kind: instance method of SceneManager
Param | Type |
---|---|
name | string |
sceneManager.clear() ⇒ SceneManager
Kind: instance method of SceneManager
sceneManager.exists(name) ⇒ boolean
Kind: instance method of SceneManager
Param | Type |
---|---|
name | string |
sceneManager.set(name)
Kind: instance method of SceneManager
Param | Type |
---|---|
name | string |
sceneManager.stackPush(id)
Kind: instance method of SceneManager
Param | Type |
---|---|
id | string |
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