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

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

  var p = adventurejs.Game.prototype;

  /**
   * Create global scenery.
   * @memberOf adventurejs.Game
   * @method adventurejs.Game#createGlobalConcepts
   * @kind function
   */
  p.createGlobalConcepts = function Game_createGlobalConcepts() {
    this.createAsset({
      class: "GlobalString",
      id: "global_string",
      nameless: true,
    }); // for string-in-string
    this.createAsset({
      class: "GlobalNumber",
      id: "global_number",
      nameless: true,
    }); // for numbers in input
    this.createAsset({
      class: "GlobalTurn",
      id: "global_turn",
      nameless: true,
    }); // for "wait x turns"
    this.createAsset({
      class: "GlobalMinute",
      id: "global_minute",
      nameless: true,
    }); // for "wait x minutes"
  };
})();