import { LoadedMachineConfiguration } from "../../src/types"; import { StateMachine } from "../../src/state-machines/state-machine"; export class VR_TUTORIAL_INTRO_STATE_MACHINE extends StateMachine { constructor(options: LoadedMachineConfiguration) { const { context } = options; super([ { "context": { "errorCounter": 0, ...context }, "id": "VR_TUTORIAL_INTRO", "initial": "ready", "states": { "PRESENTATION_CA": { "exit": [], "meta": { "CA": { "utterance": "PRESENTATION_CA" } }, "on": { "AFFIRMATIVE": "REPEAT", "NEGATIVE": "PRESENTATION_CA", "SILENT": "PRESENTATION_CA" }, "type": "" }, "REPEAT": { "exit": [], "meta": { "CA": { "utterance": "REPEAT_NAME" } }, "on": { "CA_NAME": "TUTORIAL_POSITIVE_REINFORCEMENT" }, "type": "" }, "TUTORIAL_INTRO": { "exit": [], "meta": { "CA": { "utterance": "TUTORIAL_INTRO" } }, "on": { "INSTANT": "PRESENTATION_CA" }, "type": "" }, "TUTORIAL_POSITIVE_REINFORCEMENT": { "exit": [], "meta": { "CA": { "utterance": "TUTORIAL_POSITIVE_REINFORCEMENT" }, "VR": [ { "name": "task_completed" }, { "name": "positive_reinforcement" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "end": { "exit": [], "meta": { "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "final" }, "ready": { "exit": [], "meta": {}, "on": { "READY": "TUTORIAL_INTRO" }, "type": "" } } }, { actions: {}, guards: {} } ]); } }