Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SceneContextScene<C, D>

Type parameters

Hierarchy

  • SceneContextScene

Index

Constructors

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

Properties

leaving: boolean = false
options: SceneContextSceneOptions<D>

Accessors

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

Methods

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

    • sceneId: string
    • initialState: object = {}
    • silent: boolean = false

    Returns Promise<unknown>

  • leave(): Promise<void>
  • reenter(): undefined | Promise<unknown>
  • reset(): void

Generated using TypeDoc