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 580 B
'use strict';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}}exports.fixedCommitments=i;exports.getCommitmentById=o;exports.registeredCommitments=r;exports.saveCommitment=n;//# sourceMappingURL=CommitmentDecorator.js.map //# sourceMappingURL=CommitmentDecorator.js.map