phaser/v3/src/gameobjects/GameObjectFactory.js
photonstorm e83bd3d544 Added NOOP.
Added Config pre and post boot callbacks.
Added Image and start of the Game Factory rebuild.
2016-11-28 16:55:25 +00:00

36 lines
893 B
JavaScript

/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The GameObject Factory is a quick way to create many common game objects. The Factory is owned by the State.
*
* @class Phaser.GameObject.Factory
* @constructor
* @param {Phaser.Game} game - A reference to the currently running game.
*/
var GameObjectFactory = function (state)
{
/**
* @property {Phaser.Game} game - A reference to the currently running Game.
* @protected
*/
this.game = state.game;
/**
* @property {Phaser.State} state - The State that owns this Factory
* @protected
*/
this.state = state;
};
GameObjectFactory.prototype.constructor = GameObjectFactory;
GameObjectFactory.prototype = {
};
module.exports = GameObjectFactory;