// set.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Game.prototype;
/**
* This is a shallow copy for setting global properties on
* the main game object. Returns the game object for chaining.
* @memberOf adventurejs.Game
* @method adventurejs.Game#set
* @param {Object} props A generic object containing properties to copy to the Game instance.
* @returns {adventurejs.Game} Returns the instance the method is called on (useful for chaining calls.)
* @chainable
*/
p.set = function Game_set(props) {
if (props != null) {
for (var n in props) { this[n] = props[n]; }
}
return this;
};
}());