mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +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.
|
||||
* @return The absolute delta value.
|
||||
*/
|
||||
deltaAbsX(): void;
|
||||
deltaAbsX(): number;
|
||||
|
||||
/**
|
||||
* Returns the absolute delta y value.
|
||||
* @return The absolute delta value.
|
||||
*/
|
||||
deltaAbsY(): void;
|
||||
deltaAbsY(): number;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* @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.
|
||||
* @return True if in contact with either the world bounds or a tile.
|
||||
*/
|
||||
onWall(): void;
|
||||
onWall(): boolean;
|
||||
|
||||
/**
|
||||
* Internal method.
|
||||
|
|
8
typescript/phaser.d.ts
vendored
8
typescript/phaser.d.ts
vendored
|
@ -2785,12 +2785,12 @@ declare module Phaser {
|
|||
deltaX(): number;
|
||||
deltaY(): number;
|
||||
deltaZ(): number;
|
||||
deltaAbsX(): void;
|
||||
deltaAbsY(): void;
|
||||
deltaAbsX(): number;
|
||||
deltaAbsY(): number;
|
||||
destroy(): void;
|
||||
hitTest(x: number, y: number): boolean;
|
||||
onFloor(): void;
|
||||
onWall(): void;
|
||||
onFloor(): boolean;
|
||||
onWall(): boolean;
|
||||
preUpdate(): void;
|
||||
postUpdate(): void;
|
||||
render(context: any, body: Phaser.Physics.Arcade.Body, color?: string, filled?: boolean): void;
|
||||
|
|
Loading…
Reference in a new issue