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

  /**
   * @ajspath AdventureJS.Atom.TraitManager.Asset_Can
   * @augments AdventureJS.AssetTraits.TraitManager
   * @class AdventureJS.AssetTraits.Asset_Can
   * @ajsnavheading TraitClasses
   * @param {String} game_name Name of top level game instance that is scoped to window.
   * @param {String} name Instance name.
   * @summary A container for state variables.
   * @classdesc
   * <p>
   * <strong>Asset_Can</strong> is a state management class for all {@link AdventureJS.Assets.Asset|Assets}.
   * used to store a variety of booleans.
   **/

  class Asset_Can extends AdventureJS.AssetTraits.TraitManager {
    constructor(name = "can", game_name, context_id) {
      // Call the constructor of the super class
      super(name, game_name, context_id);
      this.class = "Asset_Can";
      return this;
    }
  }
  AdventureJS.AssetTraits.Asset_Can = Asset_Can;
})();