Update phaser.d.ts

This commit is contained in:
clark-stevenson 2014-05-19 22:33:36 +01:00
parent 7b876d5fc4
commit 4e2e6f9128

14
build/phaser.d.ts vendored
View file

@ -674,7 +674,8 @@ declare module PIXI {
constructor(width: number, height: number, renderer: IPixiRenderer); constructor(width: number, height: number, renderer: IPixiRenderer);
resize(width: number, height: number): void; clear(): void;
resize(width: number, height: number, updateBase: boolean): void;
} }
@ -777,6 +778,7 @@ declare module PIXI {
export class Stage extends DisplayObjectContainer { export class Stage extends DisplayObjectContainer {
bounds: Phaser.Rectangle;
interactive: boolean; interactive: boolean;
interactionManager: InteractionManager; interactionManager: InteractionManager;
worldTransform: IMatrix; worldTransform: IMatrix;
@ -2646,11 +2648,16 @@ declare module Phaser {
locked: boolean; locked: boolean;
mouseDownCallback: Function; mouseDownCallback: Function;
mouseMoveCallback: Function; mouseMoveCallback: Function;
mouseOutCallback: Function;
mouseOverCallback: Function;
mouseUpCallback: Function; mouseUpCallback: Function;
pointerLock: Phaser.Signal; pointerLock: Phaser.Signal;
spotOnGameOut: boolean;
onMouseDown(event: MouseEvent): void; onMouseDown(event: MouseEvent): void;
onMouseMove(event: MouseEvent): void; onMouseMove(event: MouseEvent): void;
onMouseOut(event: MouseEvent): void;
onMouseOver(event: MouseEvent): void;
onMouseUp(event: MouseEvent): void; onMouseUp(event: MouseEvent): void;
pointerLockChange(event: MouseEvent): void; pointerLockChange(event: MouseEvent): void;
releasePointerLock(): void; releasePointerLock(): void;
@ -3885,7 +3892,7 @@ declare module Phaser {
class RenderTexture extends PIXI.RenderTexture { class RenderTexture extends PIXI.RenderTexture {
constructor(game: Phaser.Game, width?: number, height?: number, key?: string); constructor(game: Phaser.Game, width?: number, height?: number, key?: string, scaleMode?: number);
game: Phaser.Game; game: Phaser.Game;
key: string; key: string;
@ -3950,7 +3957,6 @@ declare module Phaser {
getLongestLine(): number; getLongestLine(): number;
pasteLine(line: string, x: number, y: number, customSpacingX: number): void; pasteLine(line: string, x: number, y: number, customSpacingX: number): void;
removeUnsupportedCharacters(stripCR?: boolean): string; removeUnsupportedCharacters(stripCR?: boolean): string;
resize(width: number, height: number): void;
setFixedWidth(width: number, lineAlignment?: string): void; setFixedWidth(width: number, lineAlignment?: string): void;
setText(content: string, multiLine?: boolean, characterSpacing?: number, lineSpacing?: number, lineAlignment?: string, allowLowerCase?: boolean): void; setText(content: string, multiLine?: boolean, characterSpacing?: number, lineSpacing?: number, lineAlignment?: string, allowLowerCase?: boolean): void;
@ -4460,6 +4466,7 @@ declare module Phaser {
heightInPixels: number; heightInPixels: number;
images: any[]; images: any[];
key: string; key: string;
layer: any;
layers: Object[]; layers: Object[];
objects: any[]; objects: any[];
orientation: string; orientation: string;
@ -4502,6 +4509,7 @@ declare module Phaser {
random(x: number, y: number, width: number, height: number, layer?: any): void; random(x: number, y: number, width: number, height: number, layer?: any): void;
removeAllLayers(): void; removeAllLayers(): void;
replace(source: number, dest: number, x: number, y: number, width: number, height: number, layer?: any): void; replace(source: number, dest: number, x: number, y: number, width: number, height: number, layer?: any): void;
searchTileIndex(index: number, skip?: number, reverse?: boolean, layer?: any): Phaser.Tile;
setCollision(indexes: any, collides?: boolean, layer?: any, recalculate?: boolean): void; setCollision(indexes: any, collides?: boolean, layer?: any, recalculate?: boolean): void;
setCollisionBetween(start: number, stop: number, collides?: boolean, layer?: any, recalculate?: boolean): void; setCollisionBetween(start: number, stop: number, collides?: boolean, layer?: any, recalculate?: boolean): void;
setCollisionByExclusion(indexes: any[], collides?: boolean, layer?: any, recalculate?: boolean): void; setCollisionByExclusion(indexes: any[], collides?: boolean, layer?: any, recalculate?: boolean): void;