mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
17 lines
569 B
JavaScript
17 lines
569 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}
|
|
*/
|
|
|
|
Phaser.GameObject.Container.FACTORY_KEY = 'container';
|
|
|
|
Phaser.GameObject.Container.FACTORY_ADD = function (parent, x, y, name)
|
|
{
|
|
return parent.children.add(new Phaser.GameObject.Container(this.state, null, x, y, name));
|
|
};
|
|
|
|
Phaser.GameObject.Container.FACTORY_MAKE = function (parent, x, y)
|
|
{
|
|
return new Phaser.GameObject.Container(this.state, parent, x, y);
|
|
};
|