// hasContentsAtAspect.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Determine whether asset has contents at the specified aspect.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#hasContentsAtAspect
* @param {String} aspect
* @return {Boolean}
*/
p.hasContentsAtAspect = function Tangible_hasContentsAtAspect(aspect) {
if (
!this.hasAspectAt(aspect) ||
!this.aspects[aspect].contents ||
this.aspects[aspect].contents.length === 0
) {
return false;
}
return true;
};
})();