UNPKG

arcade-physics

Version:
19 lines 1.24 kB
export = SetTileLocationCallback; /** * Sets a collision callback for the given rectangular area (in tile coordinates) within the layer. * If a callback is already set for the tile index it will be replaced. Set the callback to null to * remove it. * * @function Phaser.Tilemaps.Components.SetTileLocationCallback * @since 3.0.0 * * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area. * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area. * @param {number} width - How many tiles wide from the `tileX` index the area will be. * @param {number} height - How many tiles tall from the `tileY` index the area will be. * @param {function} callback - The callback that will be invoked when the tile is collided with. * @param {object} callbackContext - The context under which the callback is called. * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. */ declare function SetTileLocationCallback(tileX: number, tileY: number, width: number, height: number, callback: Function, callbackContext: object, layer: Phaser.Tilemaps.LayerData): void; //# sourceMappingURL=SetTileLocationCallback.d.ts.map