Cockatrice/webclient/src/websocket/commands/game/createArrow.ts
2026-04-15 15:46:17 -05:00

8 lines
333 B
TypeScript

import { create } from '@bufbuild/protobuf';
import webClient from '../../WebClient';
import { Data } from '@app/types';
export function createArrow(gameId: number, params: Data.CreateArrowParams): void {
webClient.protobuf.sendGameCommand(gameId, Data.Command_CreateArrow_ext, create(Data.Command_CreateArrowSchema, params));
}