// setAllAspectsContentsKnown.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* This function will try to set all aspect contents
* of this asset known.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#setAllAspectsContentsKnown
*/
p.setAllAspectsContentsKnown = function Tangible_setAllAspectsContentsKnown(
value
) {
//console.warn(this.id,'setAllAspectsContentsKnown');
// @TODO this should work with on and attached,
// in if thing is open, maybe behind / under
for (var aspect in this.aspects) {
if (this.aspects[aspect].know_with_parent) {
this.setAspectContentsKnown(aspect, value);
}
}
};
})();