mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 09:04:53 -07:00
Support Game Events (#5087)
This commit is contained in:
parent
bbe125beee
commit
248ea82573
9 changed files with 77 additions and 3 deletions
7
webclient/src/websocket/events/game/leaveGame.ts
Normal file
7
webclient/src/websocket/events/game/leaveGame.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { LeaveGameReason } from 'types';
|
||||
import { GamePersistence } from '../../persistence';
|
||||
|
||||
|
||||
export function leaveGame(reason: LeaveGameReason): void {
|
||||
GamePersistence.leaveGame(reason);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue