Cockatrice/webclient/src/websocket/commands/game/concede.ts
2026-04-15 21:48:03 -05:00

7 lines
293 B
TypeScript

import { create } from '@bufbuild/protobuf';
import { WebClient } from '../../WebClient';
import { Data } from '@app/types';
export function concede(gameId: number): void {
WebClient.instance.protobuf.sendGameCommand(gameId, Data.Command_Concede_ext, create(Data.Command_ConcedeSchema));
}