mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
7 lines
329 B
TypeScript
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);
|
|
}
|