UNPKG

md5-fight-plus

Version:

26 lines (24 loc) 715 B
import { SyncBailHook } from "@/hooks/SyncBailHook"; import { PlayerInstanceProperty } from "./player"; import { Logger } from "@/logs"; export type BattleFieldInstance = { players?: { left: PlayerInstanceProperty; right: PlayerInstanceProperty; }; round?: () => void; roundCount?: number; roundHooks?: { roundStart: SyncBailHook<BattleFieldInstance>; rounding: SyncBailHook<BattleFieldInstance>; roundEnd: SyncBailHook<BattleFieldInstance>; [props: string]: SyncBailHook<any>; }; fight?: () => void; hooks?: { init: SyncBailHook<BattleFieldInstance>; fightStart: SyncBailHook<BattleFieldInstance>; [props: string]: SyncBailHook<any>; }; logger?: Logger; };