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 490 B
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}}export{o as getQuestById,t as registeredQuests,n as saveQuest};//# sourceMappingURL=QuestDecorator.mjs.map //# sourceMappingURL=QuestDecorator.mjs.map