UNPKG

arcade-physics

Version:
19 lines 1.08 kB
export = SwapByIndex; /** * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching * `indexA` and swaps then with `indexB`. This only modifies the index and does not change collision * information. * * @function Phaser.Tilemaps.Components.SwapByIndex * @since 3.0.0 * * @param {number} tileA - First tile index. * @param {number} tileB - Second tile index. * @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 {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon. */ declare function SwapByIndex(indexA: any, indexB: any, tileX: number, tileY: number, width: number, height: number, layer: Phaser.Tilemaps.LayerData): void; //# sourceMappingURL=SwapByIndex.d.ts.map