Cockatrice/webclient/src/websocket/events/game/gameSay.ts

7 lines
339 B
TypeScript

import type { Event_GameSay } from '@app/generated';
import type { GameEventMeta } from '../../types/WebSocketConfig';
import { WebClient } from '../../WebClient';
export function gameSay(data: Event_GameSay, meta: GameEventMeta): void {
WebClient.instance.response.game.gameSay(meta.gameId, meta.playerId, data.message, Date.now());
}