Merge pull request #4547 from Nallebeorn/master

JSDoc: Make createDynamicLayer() position optional
This commit is contained in:
Richard Davey 2019-05-30 22:14:25 +01:00 committed by GitHub
commit 5b85cd49a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,8 +534,8 @@ var Tilemap = new Class({
*
* @param {(integer|string)} layerID - The layer array index value, or if a string is given, the layer name from Tiled.
* @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.
* @param {number} x - The x position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.
* @param {number} y - The y position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.
* @param {number} [x=0] - The x position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.
* @param {number} [y=0] - The y position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.
*
* @return {?Phaser.Tilemaps.DynamicTilemapLayer} Returns the new layer was created, or null if it failed.
*/