UNPKG

@coorpacademy/progression-engine

Version:

83 lines (82 loc) 1.73 kB
"use strict"; exports.__esModule = true; exports.resourceAction = exports.moveAction = exports.extraLifeRefusedAction = exports.extraLifeAcceptedAction = exports.askClueAction = exports.answerAction = void 0; const answerAction = exports.answerAction = Object.freeze({ type: 'answer', payload: { answer: ['foo'], content: { ref: '1.A1.2', type: 'slide' }, nextContent: { ref: '1.A1.1', type: 'slide' }, isCorrect: false, godMode: false, instructions: null } }); const askClueAction = exports.askClueAction = Object.freeze({ type: 'clue', payload: { content: { ref: '1.A1.2', type: 'slide' } } }); const extraLifeAcceptedAction = exports.extraLifeAcceptedAction = Object.freeze({ type: 'extraLifeAccepted', payload: { content: { type: 'node', ref: 'extraLife' }, nextContent: { ref: '1.A1.1', type: 'slide' }, instructions: null } }); const extraLifeRefusedAction = exports.extraLifeRefusedAction = Object.freeze({ type: 'extraLifeRefused', payload: { content: { type: 'node', ref: 'extraLife' }, nextContent: { ref: 'failExitNode', type: 'failure' } } }); const moveAction = exports.moveAction = Object.freeze({ type: 'move', payload: { instructions: null, nextContent: { ref: '1.A1.1', type: 'slide' } } }); const resourceAction = exports.resourceAction = Object.freeze({ type: 'resource', payload: { resource: { ref: 'les_1', type: 'video', version: '1' }, content: { ref: '1.A1', type: 'chapter', version: '1' } } }); //# sourceMappingURL=actions.js.map