Cockatrice/webclient/src/websocket/commands/game/nextTurn.ts
2026-04-14 14:39:46 -05:00

7 lines
339 B
TypeScript

import { create } from '@bufbuild/protobuf';
import webClient from '../../WebClient';
import { Command_NextTurnSchema, Command_NextTurn_ext } from 'generated/proto/command_next_turn_pb';
export function nextTurn(gameId: number): void {
webClient.protobuf.sendGameCommand(gameId, Command_NextTurn_ext, create(Command_NextTurnSchema));
}