2016-10-14 01:19:35 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2016 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
Phaser.GameObject.Container.FACTORY_KEY = 'container';
|
|
|
|
|
2016-11-01 00:31:45 +00:00
|
|
|
Phaser.GameObject.Container.FACTORY_ADD = function (parent, x, y, name)
|
2016-10-14 01:19:35 +00:00
|
|
|
{
|
2016-11-10 17:04:29 +00:00
|
|
|
return parent.children.add(new Phaser.GameObject.Container(this.state, null, x, y, name));
|
2016-10-14 01:19:35 +00:00
|
|
|
};
|
|
|
|
|
2016-11-01 00:31:45 +00:00
|
|
|
Phaser.GameObject.Container.FACTORY_MAKE = function (parent, x, y)
|
2016-10-14 01:19:35 +00:00
|
|
|
{
|
2016-11-10 17:04:29 +00:00
|
|
|
return new Phaser.GameObject.Container(this.state, parent, x, y);
|
2016-10-14 01:19:35 +00:00
|
|
|
};
|