import { LoadedMachineConfiguration } from "../../src/types"; import { StateMachine } from "../../src/state-machines/state-machine"; export class VR_TUTORIAL_GREETINGS_STATE_MACHINE extends StateMachine { constructor(options: LoadedMachineConfiguration) { const { context } = options; super([ { "context": { "errorCounter": 0, ...context }, "id": "VR_TUTORIAL_GREETINGS", "initial": "ready", "states": { "END_GREETINGS": { "exit": [], "meta": { "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "GOODBYE_CA": { "exit": [], "meta": { "CA": { "utterance": "GOODBYE_CA" }, "VR": [ { "name": "task_completed" }, { "name": "quit_my_life" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "TUTORIAL_INTRO": { "exit": [], "meta": { "CA": { "utterance": "CHECK_USER_CA" } }, "on": { "AFFIRMATIVE": "GOODBYE_CA", "NEGATIVE": "END_GREETINGS", "SILENT": "END_GREETINGS" }, "type": "" }, "TUTORIAL_PRESENTATION": { "exit": [], "meta": { "CA": { "utterance": "PRESENTATION_CA_NEW" } }, "on": { "AFFIRMATIVE": "END_GREETINGS", "NEGATIVE": "TUTORIAL_INTRO", "SILENT": "END_GREETINGS" }, "type": "" }, "end": { "exit": [], "meta": { "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "final" }, "ready": { "exit": [], "meta": {}, "on": { "READY": "TUTORIAL_PRESENTATION" }, "type": "" } } }, { actions: {}, guards: {} } ]); } }