UNPKG

@drincs/nqtr

Version:

A complete system introducing the concepts of location, time and event, producing the framework of a not-quite-point-and-click adventure game.

2 lines 508 B
'use strict';var t={};function n(e){if(Array.isArray(e)){e.forEach(r=>n(r));return}t[e.id]&&console.warn(`[NQTR] Quest id ${e.id} already exists, it will be overwritten`),t[e.id]=e;}function o(e){try{let r=t[e];if(!r){console.error(`[NQTR] Quest ${e} not found`);return}return r}catch(r){console.error(`[NQTR] Error while getting Quest ${e}`,r);return}}exports.getQuestById=o;exports.registeredQuests=t;exports.saveQuest=n;//# sourceMappingURL=QuestDecorator.js.map //# sourceMappingURL=QuestDecorator.js.map