Support Game Events (#5087)

This commit is contained in:
Zach H 2024-08-24 17:31:20 -07:00 committed by GitHub
parent bbe125beee
commit 248ea82573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 77 additions and 3 deletions

View 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);
}
}

View file

@ -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;

View file

@ -2,3 +2,4 @@ export { AdminPersistence } from './AdminPresistence';
export { RoomPersistence } from './RoomPersistence';
export { SessionPersistence } from './SessionPersistence';
export { ModeratorPersistence } from './ModeratorPresistence';
export { GamePersistence } from './GamePersistence';