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