import type { alert } from "web/alerts/types";
import blastinRoulette from "./blastinRoulette";
import grenadeExplosion from "./grenadeExplosion";
import sound from "./sound";
import tntExplosion from "./tntExplosion";
import userBlast from "./userBlast";
import userExecution from "./userExecution";

export type AlertRunner = {
	duration: number;
	alertDiv: HTMLDivElement;
	blocking: boolean;
};

type AlertMap = {
	[key: string]: (alert: alert) => Promise<AlertRunner>;
};

export default {
	userBlast: userBlast,
	userExecution: userExecution,
	grenadeExplosion: grenadeExplosion,
	tntExplosion: tntExplosion,
	sound: sound,
	blastinRoulette: blastinRoulette,
} as AlertMap;
