Docs: add Phaser.Types.GameObjects.Group.GroupClassTypeConstructor

This commit is contained in:
samme 2021-10-13 13:22:54 -07:00
parent e560e81b2c
commit 52e402e14e
3 changed files with 12 additions and 2 deletions

View file

@ -125,7 +125,7 @@ var Group = new Class({
* The class to create new group members from.
*
* @name Phaser.GameObjects.Group#classType
* @type {Function}
* @type {Phaser.Types.GameObjects.Group.GroupClassTypeConstructor}
* @since 3.0.0
* @default Phaser.GameObjects.Sprite
*/

View file

@ -0,0 +1,10 @@
/**
* @callback Phaser.Types.GameObjects.Group.GroupClassTypeConstructor
* @since 3.0.0
*
* @param {Phaser.Scene} scene - The Scene to which this Game Object belongs.
* @param {number} x - The horizontal position of this Game Object in the world.
* @param {number} y - The vertical position of this Game Object in the world.
* @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.
* @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.
*/

View file

@ -103,7 +103,7 @@ var PhysicsGroup = new Class({
* This should be either `Phaser.Physics.Arcade.Image`, `Phaser.Physics.Arcade.Sprite`, or a class extending one of those.
*
* @name Phaser.Physics.Arcade.Group#classType
* @type {Function}
* @type {Phaser.Types.GameObjects.Group.GroupClassTypeConstructor}
* @default ArcadeSprite
* @since 3.0.0
*/