Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// setLocked.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;

  /**
   * <strong>setLocked</strong> sets an asset locked,
   * also setting any linked assets locked.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#setLocked
   * @param {Boolean} bool
   */
  p.setLocked = p.$lock = function Tangible_setLocked(bool = true) {
    this.is.locked = bool;
  };
})();