Options
All
  • Public
  • Public/Protected
  • All
Menu

Controls the main flow of the story, tracks logical data and provides load/save

Hierarchy

Index

Constructors

constructor

Methods

Static defineSignal

  • Defines a Signal which is a bundle of promises waiting for a set of events to happen. Example:

    // define a signal to observe the keyboard for a keydown-event and a timeout of 5 seconds
    let signal: Signal = Progress.defineSignal([ƒT.EVENT.KEYDOWN, () => ƒT.Progress.delay(5)]);
    // wait for the signal to become active
    await signal();
    

    Parameters

    Returns Signal

Static delay

  • delay(_lapse: number): Promise<void>

Static go

  • go(_scenes: Scenes): Promise<void>

Static load

  • load(): Promise<void>

Static save

  • save(): Promise<void>

Static setData

  • setData<T>(_data: T, _dom?: HTMLElement): T
  • Returns an object to use to track logical data like score, states, textual inputs given by the play etc.

    Type parameters

    • T

    Parameters

    • _data: T
    • Optional _dom: HTMLElement

    Returns T

Generated using TypeDoc