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);
|
||||
}
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ import {
|
|||
UserMessageData
|
||||
} from '../events/session/interfaces';
|
||||
import NormalizeService from '../utils/NormalizeService';
|
||||
import { DeckList } from '../../types/deckList';
|
||||
import { DeckList } from 'types';
|
||||
import { common } from 'protobufjs';
|
||||
import IBytesValue = common.IBytesValue;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,3 +2,4 @@ export { AdminPersistence } from './AdminPresistence';
|
|||
export { RoomPersistence } from './RoomPersistence';
|
||||
export { SessionPersistence } from './SessionPersistence';
|
||||
export { ModeratorPersistence } from './ModeratorPresistence';
|
||||
export { GamePersistence } from './GamePersistence';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue