UNPKG

@coorpacademy/progression-engine

Version:

79 lines 1.4 kB
export const 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 } }); export const askClueAction = Object.freeze({ type: 'clue', payload: { content: { ref: '1.A1.2', type: 'slide' } } }); export const extraLifeAcceptedAction = Object.freeze({ type: 'extraLifeAccepted', payload: { content: { type: 'node', ref: 'extraLife' }, nextContent: { ref: '1.A1.1', type: 'slide' }, instructions: null } }); export const extraLifeRefusedAction = Object.freeze({ type: 'extraLifeRefused', payload: { content: { type: 'node', ref: 'extraLife' }, nextContent: { ref: 'failExitNode', type: 'failure' } } }); export const moveAction = Object.freeze({ type: 'move', payload: { instructions: null, nextContent: { ref: '1.A1.1', type: 'slide' } } }); export const 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