mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
7 lines
345 B
TypeScript
7 lines
345 B
TypeScript
import { create } from '@bufbuild/protobuf';
|
|
import webClient from '../../WebClient';
|
|
import { Command_LeaveGameSchema, Command_LeaveGame_ext } from 'generated/proto/command_leave_game_pb';
|
|
|
|
export function leaveGame(gameId: number): void {
|
|
webClient.protobuf.sendGameCommand(gameId, Command_LeaveGame_ext, create(Command_LeaveGameSchema));
|
|
}
|