Skip to content

Commit a2a60f2

Browse files
committed
Updated readme and TS defs.
1 parent 94b6c01 commit a2a60f2

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Version 2.1.2 - "Whitebridge" - in development
9595
* BitmapData.textureLine takes a Phaser.Line object and an image in the image cache. It then accurately draws the image as a repeating texture for the full length of the line.
9696
* AnimationManager.name will now return the `name` property of the currently playing animation, if any.
9797
* Group.filter takes a predicate function and passes child, index, and the entire child array to it. It then returns an ArrayList containing all children that the predicate returns true for (thanks @codevinsky #1187)
98+
* Cache.checkUrl allows you to check if a resource is in the cache based on an absolute URL (thanks @englercj #1221)
99+
* Cache.getUrl gets a resource from the cache based on the absolute URL it was loaded from (thanks @englercj #1221)
98100

99101
### Updates
100102

build/phaser.d.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,6 @@ declare module Phaser {
14021402
addDefaultImage(): void;
14031403
addImage(key: string, url: string, data: any): void;
14041404
addJSON(key: string, urL: string, data: any): void;
1405-
addXML(key: string, url: string, data: any): void;
14061405
addMisingImage(): void;
14071406
addPhysicsData(key: string, url: string, JSONData: any, format: number): void;
14081407
addRenderTexture(key: string, texture: RenderTexture): void;
@@ -1411,18 +1410,20 @@ declare module Phaser {
14111410
addText(key: string, url: string, data: any): void;
14121411
addTextureAtlas(key: string, url: string, data: any, atlasData: any, format: number): void;
14131412
addTilemap(key: string, url: string, mapData: any, format: number): void;
1414-
checkKey(type: number, key: string): boolean;
1413+
addXML(key: string, url: string, data: any): void;
1414+
checkBinaryKey(key: string): boolean;
1415+
checkBitmapDataKey(key: string): boolean;
1416+
checkBitmapFontKey(key: string): boolean;
14151417
checkCanvasKey(key: string): boolean;
14161418
checkImageKey(key: string): boolean;
1417-
checkTextureKey(key: string): boolean;
1419+
checkJSONKey(key: string): boolean;
1420+
checkKey(type: number, key: string): boolean;
1421+
checkPhysicsKey(key: string): boolean;
14181422
checkSoundKey(key: string): boolean;
14191423
checkTextKey(key: string): boolean;
1420-
checkPhysicsKey(key: string): boolean;
1424+
checkTextureKey(key: string): boolean;
14211425
checkTilemapKey(key: string): boolean;
1422-
checkBinaryKey(key: string): boolean;
1423-
checkBitmapDataKey(key: string): boolean;
1424-
checkBitmapFontKey(key: string): boolean;
1425-
checkJSONKey(key: string): boolean;
1426+
checkUrl(url: string): any;
14261427
checkXMLKey(key: string): boolean;
14271428
decodedSound(key: string, data: any): void;
14281429
destroy(): void;
@@ -1433,8 +1434,8 @@ declare module Phaser {
14331434
getFrame(key: string): Phaser.Frame;
14341435
getFrameByIndex(key: string, frame: string): Phaser.Frame;
14351436
getFrameByName(key: string, frame: string): Phaser.Frame;
1436-
getFrameData(key: string, map?: string): Phaser.FrameData;
14371437
getFrameCount(key: string): number;
1438+
getFrameData(key: string, map?: string): Phaser.FrameData;
14381439
getImage(key: string): any;
14391440
getJSON(key: string): any;
14401441
getKeys(array: string[]): string[];
@@ -1445,8 +1446,9 @@ declare module Phaser {
14451446
getTextKeys(): string[];
14461447
getTexture(key: string): Phaser.RenderTexture;
14471448
getTextureFrame(key: string): Phaser.Frame;
1448-
getTilemapData(key: string): any;
14491449
getTilemap(key: string): any;
1450+
getTilemapData(key: string): any;
1451+
getUrl(url: string): any;
14501452
getXML(key: string): any;
14511453
isSoundDecoded(key: string): boolean;
14521454
isSoundReady(key: string): boolean;

0 commit comments

Comments
 (0)