/** * @author Richard Davey * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ declare var BlendModes: any; declare var GetAdvancedValue: any; declare var ScaleModes: any; /** * @typedef {object} GameObjectConfig * * @property {number} [x=0] - The x position of the Game Object. * @property {number} [y=0] - The y position of the Game Object. * @property {number} [depth=0] - The depth of the GameObject. * @property {boolean} [flipX=false] - The horizontally flipped state of the Game Object. * @property {boolean} [flipY=false] - The vertically flipped state of the Game Object. * @property {?(number|object)} [scale=null] - The scale of the GameObject. * @property {?(number|object)} [scrollFactor=null] - The scroll factor of the GameObject. * @property {number} [rotation=0] - The rotation angle of the Game Object, in radians. * @property {?number} [angle=null] - The rotation angle of the Game Object, in degrees. * @property {number} [alpha=1] - The alpha (opacity) of the Game Object. * @property {?(number|object)} [origin=null] - The origin of the Game Object. * @property {number} [scaleMode=ScaleModes.DEFAULT] - The scale mode of the GameObject. * @property {number} [blendMode=BlendModes.DEFAULT] - The blend mode of the GameObject. * @property {boolean} [visible=true] - The visible state of the Game Object. * @property {boolean} [add=true] - Add the GameObject to the scene. */ /** * Builds a Game Object using the provided configuration object. * * @function Phaser.GameObjects.BuildGameObject * @since 3.0.0 * * @param {Phaser.Scene} scene - A reference to the Scene. * @param {Phaser.GameObjects.GameObject} gameObject - The initial GameObject. * @param {GameObjectConfig} config - The config to build the GameObject with. * * @return {Phaser.GameObjects.GameObject} The built Game Object. */ declare var BuildGameObject: (scene: any, gameObject: any, config: any) => any;