Files
front/netcode/events.ts
T
2024-06-13 22:39:46 -04:00

13 lines
404 B
TypeScript

import type { Container } from "./interfaces";
import type { CardParser } from "./interfaces/cards";
export type ContainerHandler = {
populateContainer: () => void;
shuffleContainer: () => void;
getCardsPosition: (cards: string) => any;
hideCards: (cards: CardParser[]) => void;
showCards: (cards: CardParser[]) => void;
};
export const containerEvents = new Map<string, ContainerHandler>();