Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// SolidContainer.js
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Container.SolidContainer
   * @augments adventurejs.Container
   * @class adventurejs.SolidContainer
   * @ajsconstruct MyGame.createAsset({ "class":"SolidContainer", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsnavheading MiscAssetClasses
   * @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 A container for solid substances.
   * @ajstangiblecontainer in
   * @todo Is this a useful class?
   * @classdesc
   * <p>
   * <strong></strong>
   * </p>
   * <pre class="display"><code class="language-javascript">
   * </code></pre>
   **/
  class SolidContainer extends adventurejs.Container {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "SolidContainer";

      this.aspects.in = new adventurejs.Aspect("in", this.game_name).set({
        parent_id: this.id,
      });
    }
  }
  adventurejs.SolidContainer = SolidContainer;
})();