// isCurrentRoom.js
(function () {
/* global AdventureJS A */
var p = AdventureJS.Game.prototype;
/**
* Tests whether the current room matches the provided name or id.
* @method AdventureJS.Game#isRoom
* @memberOf AdventureJS.Game
* @returns {Object}
*/
p.isRoom = function Game_isRoom(str) {
const room = this.getAsset(this.world._room);
return str === room.name || str === room.id;
};
})();