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();
Wait for the given amount of time in seconds to pass
Starts the story with the scenes-object given and reads the url-searchstring to enter at a point previously saved
Opens a dialog for file selection, loads selected file and restarts the program with its contents as url-searchstring
Saves the state the program was in when starting the current scene from Progress.play(...)
Returns an object to use to track logical data like score, states, textual inputs given by the play etc.
Generated using TypeDoc
Controls the main flow of the story, tracks logical data and provides load/save