Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// doesContainAnyAssetAt.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;
  /**
   * Check whether this asset contains any assets.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#doesContainAnyAssetAt
   * @param {String} aspect
   * @returns {Boolean}
   */
  p.doesContainAnyAssetAt = function Tangible_doesContainAnyAssetAt(aspect) {
    if (!aspect) return false;
    if (!this.aspects[aspect]) return false;
    if (this.aspects[aspect].contents.length > 0) return true;
    return false;
  }; // doesContainAnyAssetAt.js
})();