Updated tilemap type to string (fixes #516)

This commit is contained in:
photonstorm 2014-03-06 16:53:52 +00:00
parent 081c083176
commit d75f6e163f
2 changed files with 2 additions and 2 deletions

2
build/phaser.d.ts vendored
View file

@ -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;

View file

@ -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) {