mirror of
https://github.com/photonstorm/phaser
synced 2024-12-13 14:53:01 +00:00
Merge pull request #1155 from englercj/dev
More typescript definition file updates
This commit is contained in:
commit
37ddbf8612
1 changed files with 32 additions and 26 deletions
58
build/phaser.d.ts
vendored
58
build/phaser.d.ts
vendored
|
@ -1299,28 +1299,28 @@ declare module Phaser {
|
||||||
checkBitmapDataKey(key: string): boolean;
|
checkBitmapDataKey(key: string): boolean;
|
||||||
checkBitmapFontKey(key: string): boolean;
|
checkBitmapFontKey(key: string): boolean;
|
||||||
checkJSONKey(key: string): boolean;
|
checkJSONKey(key: string): boolean;
|
||||||
decodedSound(key: string, data: Object): void;
|
decodedSound(key: string, data: any): void;
|
||||||
destroy(): void;
|
destroy(): void;
|
||||||
getBinary(key: string): Object;
|
getBinary(key: string): any;
|
||||||
getBitmapData(key: string): Phaser.BitmapData;
|
getBitmapData(key: string): Phaser.BitmapData;
|
||||||
getBitmapFont(key: string): Phaser.RetroFont;
|
getBitmapFont(key: string): Phaser.RetroFont;
|
||||||
getCanvas(key: string): Object;
|
getCanvas(key: string): any;
|
||||||
getFrame(key: string): Phaser.Frame;
|
getFrame(key: string): Phaser.Frame;
|
||||||
getFrameByIndex(key: string, frame: string): Phaser.Frame;
|
getFrameByIndex(key: string, frame: string): Phaser.Frame;
|
||||||
getFrameByName(key: string, frame: string): Phaser.Frame;
|
getFrameByName(key: string, frame: string): Phaser.Frame;
|
||||||
getFrameData(key: string): Phaser.FrameData;
|
getFrameData(key: string): Phaser.FrameData;
|
||||||
getImage(key: string): Object;
|
getImage(key: string): any;
|
||||||
getJSON(key: string): Object;
|
getJSON(key: string): any;
|
||||||
getKeys(array: string[]): string[];
|
getKeys(array: string[]): string[];
|
||||||
getPhysicsData(key: string, object?: string, fixtureKey?: string): Object[];
|
getPhysicsData(key: string, object?: string, fixtureKey?: string): Object[];
|
||||||
getSound(key: string): Phaser.Sound;
|
getSound(key: string): Phaser.Sound;
|
||||||
getSoundData(key: string): Object;
|
getSoundData(key: string): any;
|
||||||
getText(key: string): string;
|
getText(key: string): string;
|
||||||
getTextKeys(): string[];
|
getTextKeys(): string[];
|
||||||
getTexture(key: string): Phaser.RenderTexture;
|
getTexture(key: string): Phaser.RenderTexture;
|
||||||
getTextureFrame(key: string): Phaser.Frame;
|
getTextureFrame(key: string): Phaser.Frame;
|
||||||
getTilemapData(key: string): Object;
|
getTilemapData(key: string): any;
|
||||||
getTilemap(key: string): Object;
|
getTilemap(key: string): any;
|
||||||
isSoundDecoded(key: string): boolean;
|
isSoundDecoded(key: string): boolean;
|
||||||
isSoundReady(key: string): boolean;
|
isSoundReady(key: string): boolean;
|
||||||
isSpriteSheet(key: string): boolean;
|
isSpriteSheet(key: string): boolean;
|
||||||
|
@ -3894,43 +3894,49 @@ declare module Phaser {
|
||||||
y: number;
|
y: number;
|
||||||
|
|
||||||
static add(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
static add(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
static centroid(points: Phaser.Point[], out?: Phaser.Point): Phaser.Point;
|
static subtract(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
static distance(a: Phaser.Point, b: Phaser.Point, round?: boolean): number;
|
static multiply(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
static divide(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
static divide(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
static equals(a: Phaser.Point, b: Phaser.Point): boolean;
|
static equals(a: Phaser.Point, b: Phaser.Point): boolean;
|
||||||
static multiply(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
static angle(a: Phaser.Point, b: Phaser.Point): number;
|
||||||
static rotate(a: Phaser.Point, x: number, y: number, angle: number, asDegrees: boolean, distance?: number): Phaser.Point;
|
static angleSq(a: Phaser.Point, b: Phaser.Point): number;
|
||||||
static subtract(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
static negative(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static multiplyAdd(a: Phaser.Point, b: Phaser.Point, scale: number, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static interpolate(a: Phaser.Point, b: Phaser.Point, alpha: number, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static perp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static rperp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static distance(a: any, b: any, round?: boolean): number;
|
||||||
|
static project(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static projectUnit(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static normalRightHand(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static normalize(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||||
|
static rotate(a: Phaser.Point, x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
|
||||||
|
static centroid(points: Phaser.Point[], out?: Phaser.Point): Phaser.Point;
|
||||||
|
|
||||||
add(x: number, y: number): Phaser.Point;
|
add(x: number, y: number): Phaser.Point;
|
||||||
angle(a: Phaser.Point, asDegrees?: boolean): number;
|
angle(a: Phaser.Point, asDegrees?: boolean): number;
|
||||||
angleSq(a: Phaser.Point, b: Phaser.Point): number;
|
angleSq(a: Phaser.Point): number;
|
||||||
clamp(min: number, max: number): Phaser.Point;
|
clamp(min: number, max: number): Phaser.Point;
|
||||||
clampX(min: number, max: number): Phaser.Point;
|
clampX(min: number, max: number): Phaser.Point;
|
||||||
clampY(min: number, max: number): Phaser.Point;
|
clampY(min: number, max: number): Phaser.Point;
|
||||||
clone(output?: Phaser.Point): Phaser.Point;
|
clone(output?: Phaser.Point): Phaser.Point;
|
||||||
copyFrom(source: any): Phaser.Point;
|
copyFrom(source: Phaser.Point): Phaser.Point;
|
||||||
copyTo(dest: any): Object;
|
copyTo(dest: Phaser.Point): Object;
|
||||||
cross(a: Phaser.Point): number;
|
cross(a: Phaser.Point): number;
|
||||||
distance(dest: Object, round?: boolean): number;
|
|
||||||
divide(x: number, y: number): Phaser.Point;
|
divide(x: number, y: number): Phaser.Point;
|
||||||
|
distance(dest: Phaser.Point, round?: boolean): number;
|
||||||
dot(a: Phaser.Point): number;
|
dot(a: Phaser.Point): number;
|
||||||
equals(a: Phaser.Point): boolean;
|
equals(a: Phaser.Point): boolean;
|
||||||
getMagnitude(): number;
|
getMagnitude(): number;
|
||||||
getMagnitudeSq(): number;
|
getMagnitudeSq(): number;
|
||||||
interpolate(a: Phaser.Point, b: Phaser.Point, f: number, out?: Phaser.Point): Phaser.Point;
|
|
||||||
invert(): Phaser.Point;
|
invert(): Phaser.Point;
|
||||||
isZero(): boolean;
|
isZero(): boolean;
|
||||||
multiply(x: number, y: number): Phaser.Point;
|
multiply(x: number, y: number): Phaser.Point;
|
||||||
multiplyAdd(a: Phaser.Point, b: Phaser.Point, s: number, out?: Phaser.Point): Phaser.Point;
|
normalize(): Phaser.Point;
|
||||||
negative(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
normalRightHand(): Phaser.Point;
|
||||||
normalize(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
perp(): Phaser.Point;
|
||||||
normalRightHand(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
rperp(): Phaser.Point;
|
||||||
perp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
|
||||||
project(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
|
||||||
projectUnit(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
|
||||||
rotate(x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
|
rotate(x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
|
||||||
rperp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
|
||||||
set(x: number, y?: number): Phaser.Point;
|
set(x: number, y?: number): Phaser.Point;
|
||||||
setMagnitude(magnitude: number): Phaser.Point;
|
setMagnitude(magnitude: number): Phaser.Point;
|
||||||
setTo(x: number, y?: number): Phaser.Point;
|
setTo(x: number, y?: number): Phaser.Point;
|
||||||
|
|
Loading…
Reference in a new issue