partey_workadventure/front/src/Phaser/Items/ItemFactoryInterface.ts

11 lines
429 B
TypeScript
Raw Normal View History

import type {GameScene} from "../Game/GameScene";
import type {ITiledMapObject} from "../Map/ITiledMap";
import type {ActionableItem} from "./ActionableItem";
import LoaderPlugin = Phaser.Loader.LoaderPlugin;
export interface ItemFactoryInterface {
preload: (loader: LoaderPlugin) => void;
create: (scene: GameScene) => void;
2020-07-27 22:36:07 +02:00
factory: (scene: GameScene, object: ITiledMapObject, state: unknown) => ActionableItem;
}