partey_workadventure/front/src/rex-plugins.d.ts

60 lines
1.7 KiB
TypeScript
Raw Normal View History

2021-12-16 10:04:55 +01:00
//import Phaser from "phaser";
2021-09-06 14:27:54 +02:00
declare module "phaser3-rex-plugins/plugins/virtualjoystick.js" {
2021-12-16 10:04:55 +01:00
/*const content: any; // eslint-disable-line
export default content;*/
import GameObject = Phaser.GameObjects.GameObject;
import { Scene } from "phaser";
type CursorKey = {
isDown: boolean;
};
export type Direction = "left" | "right" | "up" | "down";
interface CursorKeys extends Record<Direction, CursorKey> {
left: CursorKey;
right: CursorKey;
up: CursorKey;
down: CursorKey;
}
class VirtualJoystick extends GameObject {
constructor(scene: Scene, config: unknown);
enable: boolean;
base: GameObjects.Image;
thumb: GameObjects.Image;
setRadius: (radius: number) => void;
y: number;
x: number;
forceX: number;
forceY: number;
visible: boolean;
createCursorKeys: () => CursorKeys;
}
export default VirtualJoystick;
}
2021-09-06 14:27:54 +02:00
declare module "phaser3-rex-plugins/plugins/gestures-plugin.js" {
2021-05-05 12:15:13 +02:00
const content: any; // eslint-disable-line
export default content;
}
2021-09-06 14:27:54 +02:00
declare module "phaser3-rex-plugins/plugins/webfontloader-plugin.js" {
const content: any; // eslint-disable-line
export default content;
}
2021-09-06 14:27:54 +02:00
declare module "phaser3-rex-plugins/plugins/outlinepipeline-plugin.js" {
import GameObject = Phaser.GameObjects.GameObject;
class OutlinePipelinePlugin {
add(gameObject: GameObject, config: object);
remove(gameObject: GameObject, name?: string);
}
export default OutlinePipelinePlugin;
}
2021-09-06 14:27:54 +02:00
declare module "phaser3-rex-plugins/plugins/gestures.js" {
export const Pinch: any; // eslint-disable-line
2021-05-05 12:15:13 +02:00
}