Skip to content

Commit

Permalink
Fixed jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Jul 23, 2024
1 parent 49456a0 commit f519c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/tilemaps/components/GetTileAt.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ var IsInLayerBounds = require('./IsInLayerBounds');
*
* @param {number} tileX - X position to get the tile from (given in tile units, not pixels).
* @param {number} tileY - Y position to get the tile from (given in tile units, not pixels).
* @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.
* @param {boolean} nonNull - For empty tiles, return a Tile object with an index of -1 instead of null.
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
*
* @return {Phaser.Tilemaps.Tile} The tile at the given coordinates or null if no tile was found or the coordinates were invalid.
*/
var GetTileAt = function (tileX, tileY, nonNull, layer)
{
if (nonNull === undefined) { nonNull = false; }

if (IsInLayerBounds(tileX, tileY, layer))
{
var tile = layer.data[tileY][tileX] || null;
Expand Down
2 changes: 1 addition & 1 deletion src/tilemaps/components/GetTileAtWorldXY.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var point = new Vector2();
*
* @param {number} worldX - X position to get the tile from (given in pixels)
* @param {number} worldY - Y position to get the tile from (given in pixels)
* @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.
* @param {boolean} nonNull - For empty tiles, return a Tile object with an index of -1 instead of null.
* @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
*
Expand Down

0 comments on commit f519c58

Please sign in to comment.