@robotlegsjs/phaser
Version:
RobotlegsJS integration with Phaser Scene Manager
14 lines (13 loc) • 326 B
TypeScript
import { IClass } from "@robotlegsjs/core";
/**
* Scene handler contract
*/
export interface ISceneHandler {
/**
* View handler method
*
* @param scene The scene instance to handle
* @param type The class of the scene instance
*/
handleScene(scene: Phaser.Scene, type: IClass<any>): void;
}