11 lines
435 B
TypeScript
11 lines
435 B
TypeScript
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;
|
|
factory: (scene: GameScene, object: ITiledMapObject, state: unknown) => ActionableItem;
|
|
}
|