Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SceneContextScene<C, D>

Type parameters

Hierarchy

  • SceneContextScene

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new SceneContextScene<C, D>(ctx: C, scenes: Map<string, BaseScene<C>>, options: Partial<SceneContextSceneOptions<D>>): SceneContextScene<C, D>

Properties

Private leaving

leaving: boolean = false

Private Readonly options

options: SceneContextSceneOptions<D>

Accessors

current

session

  • get session(): D

state

  • get state(): object
  • set state(value: object): void

Methods

enter

  • enter(sceneId: string, initialState?: object, silent?: boolean): Promise<unknown>
  • Parameters

    • sceneId: string
    • initialState: object = ...
    • silent: boolean = false

    Returns Promise<unknown>

leave

  • leave(): Promise<void>

reenter

  • reenter(): undefined | Promise<unknown>

reset

  • reset(): void

Generated using TypeDoc