mirror of
https://github.com/photonstorm/phaser
synced 2025-01-10 20:28:56 +00:00
Docs: add Phaser.Types.GameObjects.Group.GroupClassTypeConstructor
This commit is contained in:
parent
e560e81b2c
commit
52e402e14e
3 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
*/
|
||||
|
|
10
src/gameobjects/group/typedefs/GroupClassTypeConstructor.js
Normal file
10
src/gameobjects/group/typedefs/GroupClassTypeConstructor.js
Normal 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.
|
||||
*/
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue