// getAspect.js
(function () {
/* global AdventureJS A */
var p = AdventureJS.Assets.Entity.prototype;
/**
* Get aspect at specified preposition.
* @memberOf AdventureJS.Assets.Entity
* @method AdventureJS.Assets.Entity#getAspect
* @param {string} aspect - The aspect to get.
* @return {Object|Null}
*/
p.getAspect = function Entity_getAspect(aspect) {
if (!aspect || !this.aspects || !this.aspects[aspect]) {
return null;
}
return this.aspects[aspect];
};
})();