-
Notifications
You must be signed in to change notification settings - Fork 20
/
main.d.ts
46 lines (37 loc) · 1.27 KB
/
main.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/// <reference path="../node_modules/phaser/typescript/phaser.d.ts" />
/// <reference path="../node_modules/lz-string/typings/lz-string.d.ts" />
/// <reference path="../node_modules/phaser-tiled/typescript/phaser-tiled.d.ts" />
/* tslint:disable:no-internal-module */
declare module p2 {
export interface IBodyEx {
parent: Phaser.Physics.P2.Body;
}
export interface ISpringEx {
parent: Phaser.Physics.P2.Spring;
}
}
/* tslint:enable:no-internal-module */
// declare stub phaser-debug
declare module 'phaser-debug' {
export = class Debug extends Phaser.Plugin {
constructor(game: Phaser.Game, parent: PIXI.DisplayObject);
}
}
// declare stub phaser-tiled
declare module 'phaser-tiled' {
export = class Tiled extends Phaser.Plugin {
constructor(game: Phaser.Game, parent: PIXI.DisplayObject);
}
}
// declare lz-string
declare module 'lz-string' {
export = LZString;
}
// stub require so TS will shut up
declare var require: (file: string) => any;
// global types
declare type TCallback<R> = () => R;
declare type TPoint = (PIXI.Point|Phaser.Point|Phaser.Physics.P2.InversePointProxy);
declare type TTable<V> = { [index: string]: V };
declare type TArrayTable<V> = { [index: number]: V };
declare type TColorRGBA = number[];