mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Updated tilemap type to string (fixes #516)
This commit is contained in:
parent
081c083176
commit
d75f6e163f
2 changed files with 2 additions and 2 deletions
2
build/phaser.d.ts
vendored
2
build/phaser.d.ts
vendored
|
@ -2377,7 +2377,7 @@ declare module Phaser {
|
|||
spritesheet(key: string, url: string, frameWidth: number, frameHeight: number, frameMax?: number, margin?: number, spacing?: number): Phaser.Loader;
|
||||
start(): void;
|
||||
text(key: string, url: string, overwrite?: boolean): Phaser.Loader;
|
||||
tilemap(key: string, mapDataURL?: string, mapData?: Object, format?: string): Phaser.Loader;
|
||||
tilemap(key: string, mapDataURL?: string, mapData?: Object, format?: number): Phaser.Loader;
|
||||
totalLoadedFiles(): number;
|
||||
totalQueuedFiles(): number;
|
||||
xmlLoadComplete(index:number): void;
|
||||
|
|
|
@ -514,7 +514,7 @@ Phaser.Loader.prototype = {
|
|||
* @param {string} key - Unique asset key of the tilemap data.
|
||||
* @param {string} [mapDataURL] - The url of the map data file (csv/json)
|
||||
* @param {object} [mapData] - An optional JSON data object. If given then the mapDataURL is ignored and this JSON object is used for map data instead.
|
||||
* @param {string} [format=Phaser.Tilemap.CSV] - The format of the map data. Either Phaser.Tilemap.CSV or Phaser.Tilemap.TILED_JSON.
|
||||
* @param {number} [format=Phaser.Tilemap.CSV] - The format of the map data. Either Phaser.Tilemap.CSV or Phaser.Tilemap.TILED_JSON.
|
||||
* @return {Phaser.Loader} This Loader instance.
|
||||
*/
|
||||
tilemap: function (key, mapDataURL, mapData, format) {
|
||||
|
|
Loading…
Reference in a new issue