mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
14 lines
476 B
TypeScript
14 lines
476 B
TypeScript
import { create } from '@bufbuild/protobuf';
|
|
import webClient from '../../WebClient';
|
|
|
|
import { SessionPersistence } from '../../persistence';
|
|
import { Data } from '@app/types';
|
|
|
|
export function replayList(): void {
|
|
webClient.protobuf.sendSessionCommand(Data.Command_ReplayList_ext, create(Data.Command_ReplayListSchema), {
|
|
responseExt: Data.Response_ReplayList_ext,
|
|
onSuccess: (response) => {
|
|
SessionPersistence.replayList(response.matchList);
|
|
},
|
|
});
|
|
}
|