mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
TypeScript defs update.
This commit is contained in:
parent
a65f9c7e4b
commit
2ac594ca03
3 changed files with 14 additions and 5 deletions
|
@ -15,7 +15,7 @@ var Phaser = Phaser || {
|
||||||
* @constant
|
* @constant
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
VERSION: '2.4.9 RC2',
|
VERSION: '2.4.9 RC3',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array of Phaser game instances.
|
* An array of Phaser game instances.
|
||||||
|
|
16
typescript/phaser.d.ts
vendored
16
typescript/phaser.d.ts
vendored
|
@ -1,7 +1,7 @@
|
||||||
/// <reference path="pixi.d.ts" />
|
/// <reference path="pixi.d.ts" />
|
||||||
/// <reference path="p2.d.ts" />
|
/// <reference path="p2.d.ts" />
|
||||||
|
|
||||||
// Type definitions for Phaser 2.4.9 - 3rd June 2016
|
// Type definitions for Phaser 2.4.9 - 9th June 2016
|
||||||
// Project: https://github.com/photonstorm/phaser
|
// Project: https://github.com/photonstorm/phaser
|
||||||
|
|
||||||
declare module "phaser" {
|
declare module "phaser" {
|
||||||
|
@ -1691,8 +1691,13 @@ declare module "phaser" {
|
||||||
game: Phaser.Game;
|
game: Phaser.Game;
|
||||||
hash: PIXI.DisplayObject[];
|
hash: PIXI.DisplayObject[];
|
||||||
ignoreDestroy: boolean;
|
ignoreDestroy: boolean;
|
||||||
|
inputEnableChildren: boolean;
|
||||||
length: number;
|
length: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
onChildInputDown: Phaser.Signal;
|
||||||
|
onChildInputUp: Phaser.Signal;
|
||||||
|
onChildInputOver: Phaser.Signal;
|
||||||
|
onChildInputOut: Phaser.Signal;
|
||||||
onDestroy: Phaser.Signal;
|
onDestroy: Phaser.Signal;
|
||||||
pendingDestroy: boolean;
|
pendingDestroy: boolean;
|
||||||
physicsBodyType: number;
|
physicsBodyType: number;
|
||||||
|
@ -1706,7 +1711,7 @@ declare module "phaser" {
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
z: number;
|
z: number;
|
||||||
|
|
||||||
add(child: any, silent?: boolean): any;
|
add(child: any, silent?: boolean, index?: number): any;
|
||||||
addAll(property: string, amount: number, checkAlive: boolean, checkVisible: boolean): void;
|
addAll(property: string, amount: number, checkAlive: boolean, checkVisible: boolean): void;
|
||||||
addAt(child: any, index: number, silent?: boolean): any;
|
addAt(child: any, index: number, silent?: boolean): any;
|
||||||
addMultiple(children: any[], silent?: boolean): any[];
|
addMultiple(children: any[], silent?: boolean): any[];
|
||||||
|
@ -1719,8 +1724,8 @@ declare module "phaser" {
|
||||||
checkProperty(child: any, key: string[], value: any, force?: boolean): boolean;
|
checkProperty(child: any, key: string[], value: any, force?: boolean): boolean;
|
||||||
countDead(): number;
|
countDead(): number;
|
||||||
countLiving(): number;
|
countLiving(): number;
|
||||||
create(x: number, y: number, key?: string | Phaser.RenderTexture | Phaser.BitmapData | Phaser.Video | PIXI.Texture, frame?: string | number, exists?: boolean): any;
|
create(x: number, y: number, key?: string | Phaser.RenderTexture | Phaser.BitmapData | Phaser.Video | PIXI.Texture, frame?: string | number, exists?: boolean, index?: number): any;
|
||||||
createMultiple(quantity: number, key: string, frame?: any, exists?: boolean): void;
|
createMultiple(quantity: number, key: string, frame?: any, exists?: boolean): any[];
|
||||||
customSort(sortHandler: Function, context?: any): void;
|
customSort(sortHandler: Function, context?: any): void;
|
||||||
destroy(destroyChildren?: boolean, soft?: boolean): void;
|
destroy(destroyChildren?: boolean, soft?: boolean): void;
|
||||||
divideAll(property: string, amount: number, checkAlive?: boolean, checkVisible?: boolean): void;
|
divideAll(property: string, amount: number, checkAlive?: boolean, checkVisible?: boolean): void;
|
||||||
|
@ -1938,6 +1943,7 @@ declare module "phaser" {
|
||||||
hitTest(displayObject: PIXI.DisplayObject, pointer: Phaser.Pointer, localPoint: Phaser.Point): void;
|
hitTest(displayObject: PIXI.DisplayObject, pointer: Phaser.Pointer, localPoint: Phaser.Point): void;
|
||||||
reset(hard?: boolean): void;
|
reset(hard?: boolean): void;
|
||||||
resetSpeed(x: number, y: number): void;
|
resetSpeed(x: number, y: number): void;
|
||||||
|
setInteractiveCandidateHandler(callback: Function, context?: any): void;
|
||||||
startPointer(event: any): Phaser.Pointer;
|
startPointer(event: any): Phaser.Pointer;
|
||||||
stopPointer(event: any): Phaser.Pointer;
|
stopPointer(event: any): Phaser.Pointer;
|
||||||
update(): void;
|
update(): void;
|
||||||
|
@ -3896,6 +3902,7 @@ declare module "phaser" {
|
||||||
justReleasePreventsOver: boolean | number;
|
justReleasePreventsOver: boolean | number;
|
||||||
id: number;
|
id: number;
|
||||||
identifier: number;
|
identifier: number;
|
||||||
|
interactiveCandidates: Phaser.InputHandler[];
|
||||||
isDown: boolean;
|
isDown: boolean;
|
||||||
isMouse: boolean;
|
isMouse: boolean;
|
||||||
isUp: boolean;
|
isUp: boolean;
|
||||||
|
@ -3938,6 +3945,7 @@ declare module "phaser" {
|
||||||
resetMovement(): void;
|
resetMovement(): void;
|
||||||
start(event: any): void;
|
start(event: any): void;
|
||||||
stop(event: any): void;
|
stop(event: any): void;
|
||||||
|
swapTarget(newTarget: Phaser.InputHandler, silent?: boolean): void;
|
||||||
update(): void;
|
update(): void;
|
||||||
updateButtons(event: MouseEvent): void;
|
updateButtons(event: MouseEvent): void;
|
||||||
|
|
||||||
|
|
1
typescript/pixi.d.ts
vendored
1
typescript/pixi.d.ts
vendored
|
@ -520,6 +520,7 @@ declare module PIXI {
|
||||||
children: DisplayObject[];
|
children: DisplayObject[];
|
||||||
height: number;
|
height: number;
|
||||||
width: number;
|
width: number;
|
||||||
|
ignoreChildInput: boolean;
|
||||||
|
|
||||||
addChild(child: DisplayObject): DisplayObject;
|
addChild(child: DisplayObject): DisplayObject;
|
||||||
addChildAt(child: DisplayObject, index: number): DisplayObject;
|
addChildAt(child: DisplayObject, index: number): DisplayObject;
|
||||||
|
|
Loading…
Add table
Reference in a new issue