// getPlaceAspect.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Returns the aspect object of this asset's parent
* asset or null.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#getPlaceAspect
* @return {Object|null}
*/
p.getPlaceAspect = function Tangible_getPlaceAspect() {
if (!this.__place) return null;
if (!this.__place.asset) return null;
if (!this.__place.aspect) return null;
var asset = this.game.getAsset(this.__place.asset);
if (!asset) return null;
if (!asset.aspects[this.__place.aspect]) return null;
return asset.aspects[this.__place.aspect];
};
})();