mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 17:13:54 -07:00
7 lines
376 B
TypeScript
7 lines
376 B
TypeScript
import { create } from '@bufbuild/protobuf';
|
|
import { Command_GameSay_ext, Command_GameSaySchema, type GameSayParams } from '@app/generated';
|
|
import { WebClient } from '../../WebClient';
|
|
|
|
export function gameSay(gameId: number, params: GameSayParams): void {
|
|
WebClient.instance.protobuf.sendGameCommand(gameId, Command_GameSay_ext, create(Command_GameSaySchema, params));
|
|
}
|