@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 • 970 B
JavaScript
;var r={};function a(e){if(Array.isArray(e)){e.forEach(t=>{r[t.id]=t;});return}r[e.id]=e;}function m(e){try{let t=r[e];if(!t){console.error(`[NQTR] Activity ${e} not found`);return}return t}catch(t){console.error(`[NQTR] Error while getting Activity ${e}`,t);return}}var o={};function n(e){if(Array.isArray(e)){e.forEach(t=>n(t));return}o[e.id]&&console.warn(`[NQTR] Commitment id ${e.id} already exists, it will be overwritten`),o[e.id]=e;}var i={};function c(e){if(Array.isArray(e)){e.forEach(t=>c(t));return}i[e.id]&&console.warn(`[NQTR] Quest id ${e.id} already exists, it will be overwritten`),i[e.id]=e;}var f={};function s(e){if(Array.isArray(e)){e.forEach(t=>s(t));return}f[e.id]&&console.warn(`[NQTR] Room id ${e.id} already exists, it will be overwritten`),f[e.id]=e;}exports.getActivityById=m;exports.saveActivity=a;exports.saveCommitment=n;exports.saveQuest=c;exports.saveRoom=s;//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map