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 500 B
'use strict';var o={};function t(e){if(Array.isArray(e)){e.forEach(r=>t(r));return}o[e.id]&&console.warn(`[NQTR] Room id ${e.id} already exists, it will be overwritten`),o[e.id]=e;}function n(e){try{let r=o[e];if(!r){console.error(`[NQTR] Room ${e} not found`);return}return r}catch(r){console.error(`[NQTR] Error while getting Room ${e}`,r);return}}exports.getRoomById=n;exports.registeredRooms=o;exports.saveRoom=t;//# sourceMappingURL=RoomDecorator.js.map //# sourceMappingURL=RoomDecorator.js.map