@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 • 557 B
JavaScript
var r={},i={};function n(t){if(Array.isArray(t)){t.forEach(e=>n(e));return}r[t.id]&&console.warn(`[NQTR] Commitment id ${t.id} already exists, it will be overwritten`),r[t.id]=t;}function o(t){try{let e=r[t];if(!e){console.error(`[NQTR] Commitment ${t} not found`);return}return e}catch(e){console.error(`[NQTR] Error while getting Commitment ${t}`,e);return}}export{i as fixedCommitments,o as getCommitmentById,r as registeredCommitments,n as saveCommitment};//# sourceMappingURL=CommitmentDecorator.mjs.map
//# sourceMappingURL=CommitmentDecorator.mjs.map