Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// destroy.js
(function () {
  /* global AdventureJS A */
  var p = AdventureJS.Assets.Asset.prototype;

  /**
   * <strong>destroy</strong> is called to remove an asset
   * from the game world. This gets called by game.destroyAsset()
   * @memberOf AdventureJS.Assets.Asset
   * @method AdventureJS.Assets.Asset#destroy
   * @param {Boolean} del Whether to permanently delete this asset.
   */
  p.destroy = function Asset_destroy(del = true) {
    var results = this.doVerbAction({
      action: "doDestroyThis",
      type: "VerbReaction",
    });
    if ("undefined" !== typeof results) return results;

    return;
  };
})();