Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// Bundle.js
(function () {
  /* global AdventureJS A */

  /**
   * @augments AdventureJS.Assets.Entity
   * @class AdventureJS.Assets.Bundle
   * @ajsconstruct MyGame.createAsset({ "class": "Bundle", "name":"bundle" })
   * @ajsconstructedby AdventureJS.Game#createAsset
   * @ajsinternal
   * @ajsnavheading GlobalAssets
   * @ajsnode game.world.bundle
   * @param {String} game_name The name of the top level game object.
   * @param {String} name A name for the object, to be serialized and used as ID.
   * @summary Internal class used to help parse when player refers to a group of fungible assets.
   * @classdesc <strong>Bundle</strong> is an internal asset class used
   * to help parse input that tries to perform a verb on a group of fungible assets.
   * Created automatically at runtime. Authors should not need to create
   * instance of this.
   **/
  class Bundle extends AdventureJS.Assets.Entity {
    constructor(name, game_name, context_id = "", id = "") {
      super(name, game_name, context_id, id);
      this.class = "Bundle";
      this.synonyms = [""];
      this.descriptions.look = "";
      this.singular = "";
      this.plural = "";
      this.singularPluralPairs = [["", ""]];
      this.is.known = true;
      this.is.seen = true;
    }
  }

  AdventureJS.Assets.Bundle = Bundle;
})();