2021-05-12 09:13:25 +02:00
|
|
|
import type {GameScene} from "../Game/GameScene";
|
|
|
|
import type {ITiledMapObject} from "../Map/ITiledMap";
|
|
|
|
import type {ActionableItem} from "./ActionableItem";
|
2020-07-23 18:09:24 +02:00
|
|
|
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;
|
2020-07-23 18:09:24 +02:00
|
|
|
}
|