import { LoadedMachineConfiguration } from "../../src/types"; import { StateMachine } from "../../src/state-machines/state-machine"; export class VR_TUTORIAL_SELECT_STATE_MACHINE extends StateMachine { constructor(options: LoadedMachineConfiguration) { const { context } = options; super([ { "context": { "errorCounter": 0, ...context }, "id": "VR_TUTORIAL_SELECT", "initial": "ready", "states": { "TUTORIAL_GOAL": { "exit": [], "meta": { "CA": { "utterance": "SELECT_AT" } }, "on": { "SELECT(*)": "WARNING", "SELECT(target)": "TUTORIAL_POSITIVE_REINFORCEMENT" }, "type": "" }, "TUTORIAL_HOW_SELECT": { "exit": [], "meta": { "CA": { "utterance": "DESCRIBE_SELECT" } }, "on": { "INSTANT": "TUTORIAL_GOAL" }, "type": "" }, "TUTORIAL_INTRO_SELECT": { "exit": [], "meta": { "CA": { "utterance": "TUTORIAL_INTRO_SELECT" } }, "on": { "INSTANT": "TUTORIAL_HOW_SELECT" }, "type": "" }, "TUTORIAL_POSITIVE_REINFORCEMENT": { "exit": [], "meta": { "CA": { "utterance": "TUTORIAL_POSITIVE_REINFORCEMENT" }, "VR": [ { "name": "task_completed" }, { "name": "positive_reinforcement" } ] }, "on": { "INSTANT": "end" }, "type": "" }, "WARNING": { "exit": [], "meta": { "CA": { "utterance": "ATTENTION" } }, "on": { "INSTANT": "TUTORIAL_GOAL" }, "type": "" }, "end": { "exit": [], "meta": { "VR": [ { "name": "task_completed" } ] }, "on": { "INSTANT": "end" }, "type": "final" }, "ready": { "exit": [], "meta": {}, "on": { "READY": "TUTORIAL_INTRO_SELECT" }, "type": "" } } }, { actions: {}, guards: {} } ]); } }