Adding event support to items
This commit is contained in:
parent
513244ae1f
commit
ee612f6585
11 changed files with 253 additions and 36 deletions
|
@ -6,5 +6,5 @@ import {ActionableItem} from "./ActionableItem";
|
|||
export interface ItemFactoryInterface {
|
||||
preload: (loader: LoaderPlugin) => void;
|
||||
create: (scene: GameScene) => void;
|
||||
factory: (scene: GameScene, object: ITiledMapObject) => ActionableItem;
|
||||
factory: (scene: GameScene, object: ITiledMapObject, state: unknown) => ActionableItem;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue