Cockatrice/webclient/src/websocket/events/game/destroyCard.ts
2026-04-14 15:14:43 -05:00

7 lines
329 B
TypeScript

import type { Event_DestroyCard } from 'generated/proto/event_destroy_card_pb';
import type { GameEventMeta } from 'types';
import { GamePersistence } from '../../persistence';
export function destroyCard(data: Event_DestroyCard, meta: GameEventMeta): void {
GamePersistence.cardDestroyed(meta.gameId, meta.playerId, data);
}