mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Added typescript defs; Fixed jshint.
This commit is contained in:
parent
d4636e9e81
commit
ae3ebf00cd
3 changed files with 10 additions and 1 deletions
|
@ -262,7 +262,7 @@ Phaser.Animation.prototype = {
|
|||
reverseOnce: function () {
|
||||
this.reverse();
|
||||
|
||||
this.onComplete.addOnce(this.reverse.bind(this))
|
||||
this.onComplete.addOnce(this.reverse.bind(this));
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
8
typescript/phaser.comments.d.ts
vendored
8
typescript/phaser.comments.d.ts
vendored
|
@ -262,6 +262,14 @@ declare module "phaser" {
|
|||
*/
|
||||
reverse(): void;
|
||||
|
||||
/**
|
||||
* Reverses the animation direction for the current/next animation only
|
||||
* Once the onComplete event is called this method will be called again and revert
|
||||
* the reversed state.
|
||||
*/
|
||||
reverseOnce(): void;
|
||||
|
||||
|
||||
/**
|
||||
* Sets this animations playback to a given frame with the given ID.
|
||||
*
|
||||
|
|
1
typescript/phaser.d.ts
vendored
1
typescript/phaser.d.ts
vendored
|
@ -92,6 +92,7 @@ declare module "phaser" {
|
|||
previous(quantity?: number): void;
|
||||
restart(): void;
|
||||
reverse(): void;
|
||||
reverseOnce(): void;
|
||||
setFrame(frameId?: string | number, useLocalFrameIndex?: boolean): void;
|
||||
stop(resetFrame?: boolean, dispatchComplete?: boolean): void;
|
||||
update(): boolean;
|
||||
|
|
Loading…
Reference in a new issue