mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Add few more interfaces (#5063)
This commit is contained in:
parent
e261e16d99
commit
8687163cca
34 changed files with 359 additions and 90 deletions
|
|
@ -52,4 +52,12 @@ export class RoomPersistence {
|
|||
static removeMessages(roomId: number, name: string, amount: number): void {
|
||||
console.log('removeMessages', roomId, name, amount);
|
||||
};
|
||||
|
||||
static gameCreated(roomId: number) {
|
||||
console.log('gameCreated', roomId);
|
||||
}
|
||||
|
||||
static joinedGame(roomId: number, gameId: number) {
|
||||
console.log('joinedGame', roomId, gameId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { ServerDispatch } from 'store';
|
||||
import { StatusEnum, User, WebSocketConnectOptions } from 'types';
|
||||
import { DeckStorageTreeItem, StatusEnum, User, WebSocketConnectOptions } from 'types';
|
||||
|
||||
import { sanitizeHtml } from 'websocket/utils';
|
||||
import {
|
||||
|
|
@ -10,6 +10,7 @@ import {
|
|||
UserMessageData
|
||||
} from '../events/session/interfaces';
|
||||
import NormalizeService from '../utils/NormalizeService';
|
||||
import { DeckList } from '../../types/deckList';
|
||||
|
||||
export class SessionPersistence {
|
||||
static initialized() {
|
||||
|
|
@ -205,4 +206,30 @@ export class SessionPersistence {
|
|||
static removeFromList(list: string, userName: string): void {
|
||||
console.log('removeFromList', list, userName);
|
||||
}
|
||||
|
||||
static deckDelete(deckId: number): void {
|
||||
console.log('deckDelete', deckId);
|
||||
}
|
||||
|
||||
static deckDeleteDir(path: string): void {
|
||||
console.log('deckDeleteDir', path);
|
||||
}
|
||||
|
||||
static deckDownload(deckId: number): void {
|
||||
console.log('deckDownload', deckId);
|
||||
}
|
||||
|
||||
static deckList(deckList: DeckList): void {
|
||||
console.log('deckList', deckList);
|
||||
}
|
||||
|
||||
static deckNewDir(path: string, dirName: string): void {
|
||||
console.log('deckNewDir', path, dirName);
|
||||
}
|
||||
|
||||
static deckUpload(treeItem: DeckStorageTreeItem): void {
|
||||
console.log('deckUpload', treeItem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue