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

7 lines
328 B
TypeScript

import type { Event_CreateToken } from 'generated/proto/event_create_token_pb';
import type { GameEventMeta } from 'types';
import { GamePersistence } from '../../persistence';
export function createToken(data: Event_CreateToken, meta: GameEventMeta): void {
GamePersistence.tokenCreated(meta.gameId, meta.playerId, data);
}