SceneContext

indigo.scenes.SceneContext
final class SceneContext[StartUpData](val sceneName: SceneName, val sceneStartTime: Seconds, val frameContext: FrameContext[StartUpData])

SceneContext is a Scene specific equivalent of FrameContext, and exposes all of the fields and methods or a normal FrameContext object. It adds information about the scene currently running.

Value parameters

frameContext

The normal frame context object that all other fields delegate to.

sceneName

The name of the current scene.

sceneStartTime

The time that the current scene was entered.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

val frameContext: FrameContext[StartUpData]
lazy val sceneRunning: Seconds

The running time of the current scene calculated as the game's total running time minus time the scene was entered.

The running time of the current scene calculated as the game's total running time minus time the scene was entered.

Attributes

Exports

Defined exports

val dice: Dice
Exported from FrameContext
Exported from FrameContext
Exported from InputState
Exported from FrameContext
Exported from InputState
val mouse: Mouse
Exported from InputState
lazy val startUpData: StartUpData
Exported from FrameContext