2020-07-23 18:09:24 +02:00
|
|
|
import LoaderPlugin = Phaser.Loader.LoaderPlugin;
|
|
|
|
import {GameScene} from "../Game/GameScene";
|
|
|
|
import {ITiledMapObject} from "../Map/ITiledMap";
|
|
|
|
import {ActionableItem} from "./ActionableItem";
|
|
|
|
|
|
|
|
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
|
|
|
}
|