Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getPlaceAssetId.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Tangible.prototype;	
  /**
   * Returns the ID of asset's parent or a blank string.
   * @memberOf adventurejs.Tangible
	 * @method adventurejs.Tangible#getPlaceAssetId
   * @return {String}
   */
   p.getPlaceAssetId = function Tangible_getPlaceAssetId()
   {
    if(!this.__place) return "";
    if(!this.__place.asset) return "";
    return this.__place.asset;
  }
}());