mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
Merge pull request #2300 from zimpy/dev
Typescript definitions - fixed return types on some functions of Arcade.Body
This commit is contained in:
commit
27654c01dc
2 changed files with 8 additions and 8 deletions
8
typescript/phaser.comments.d.ts
vendored
8
typescript/phaser.comments.d.ts
vendored
|
@ -15758,13 +15758,13 @@ declare module Phaser {
|
||||||
* Returns the absolute delta x value.
|
* Returns the absolute delta x value.
|
||||||
* @return The absolute delta value.
|
* @return The absolute delta value.
|
||||||
*/
|
*/
|
||||||
deltaAbsX(): void;
|
deltaAbsX(): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the absolute delta y value.
|
* Returns the absolute delta y value.
|
||||||
* @return The absolute delta value.
|
* @return The absolute delta value.
|
||||||
*/
|
*/
|
||||||
deltaAbsY(): void;
|
deltaAbsY(): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes this bodys reference to its parent sprite, freeing it up for gc.
|
* Removes this bodys reference to its parent sprite, freeing it up for gc.
|
||||||
|
@ -15784,13 +15784,13 @@ declare module Phaser {
|
||||||
* Returns true if the bottom of this Body is in contact with either the world bounds or a tile.
|
* Returns true if the bottom of this Body is in contact with either the world bounds or a tile.
|
||||||
* @return True if in contact with either the world bounds or a tile.
|
* @return True if in contact with either the world bounds or a tile.
|
||||||
*/
|
*/
|
||||||
onFloor(): void;
|
onFloor(): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if either side of this Body is in contact with either the world bounds or a tile.
|
* Returns true if either side of this Body is in contact with either the world bounds or a tile.
|
||||||
* @return True if in contact with either the world bounds or a tile.
|
* @return True if in contact with either the world bounds or a tile.
|
||||||
*/
|
*/
|
||||||
onWall(): void;
|
onWall(): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal method.
|
* Internal method.
|
||||||
|
|
8
typescript/phaser.d.ts
vendored
8
typescript/phaser.d.ts
vendored
|
@ -2785,12 +2785,12 @@ declare module Phaser {
|
||||||
deltaX(): number;
|
deltaX(): number;
|
||||||
deltaY(): number;
|
deltaY(): number;
|
||||||
deltaZ(): number;
|
deltaZ(): number;
|
||||||
deltaAbsX(): void;
|
deltaAbsX(): number;
|
||||||
deltaAbsY(): void;
|
deltaAbsY(): number;
|
||||||
destroy(): void;
|
destroy(): void;
|
||||||
hitTest(x: number, y: number): boolean;
|
hitTest(x: number, y: number): boolean;
|
||||||
onFloor(): void;
|
onFloor(): boolean;
|
||||||
onWall(): void;
|
onWall(): boolean;
|
||||||
preUpdate(): void;
|
preUpdate(): void;
|
||||||
postUpdate(): void;
|
postUpdate(): void;
|
||||||
render(context: any, body: Phaser.Physics.Arcade.Body, color?: string, filled?: boolean): void;
|
render(context: any, body: Phaser.Physics.Arcade.Body, color?: string, filled?: boolean): void;
|
||||||
|
|
Loading…
Reference in a new issue