Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// AssetManager.js

(function () {
  /*global adventurejs A*/

  /**
   *
   * @class adventurejs.AssetManager
   * @ajsnavheading FrameworkReference
   * @param {Game} game A reference to the game instance.
   * @summary Manages the process of saving games.
   * @classdesc
   * <p>
   * <strong>AssetManager</strong> contains asset management
   * functions.
   * </p>
   * <p>
   * AssetManager is created automatically
   * by {@link adventurejs.Game|Game}. This is an internal class that
   * authors should not need to construct or modify.
   * </p>
   * @todo Methods to move here:<br>
   * verb.tryToInferIndirectObject<br>
   * Character.findNestedIndirectObjects
   */
  class AssetManager {
    constructor(game) {
      /**
       * A reference back to the main {@link adventurejs.Game|Game} object.
       * @var {Object} adventurejs.AssetManager#game
       * @default {}
       */
      this.game = game;
    }

    /**
     * Do something.
     * @memberOf adventurejs.AssetManager
     * @method adventurejs.AssetManager#methodName
     * @kind function
     */
    methodName() {}
  }
  adventurejs.AssetManager = AssetManager;
})();