mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
add missing requests/responses
This commit is contained in:
parent
f0c3581d26
commit
4b5f66d497
27 changed files with 382 additions and 10 deletions
|
|
@ -229,4 +229,12 @@ export class SessionResponseImpl implements ISessionResponse {
|
|||
replayDeleteMatch(gameId: number): void {
|
||||
ServerDispatch.replayDeleteMatch(gameId);
|
||||
}
|
||||
|
||||
downloadServerDeck(deckId: number, response: Data.Response_DeckDownload): void {
|
||||
ServerDispatch.deckDownloaded(deckId, response.deck);
|
||||
}
|
||||
|
||||
replayDownloaded(replayId: number, response: Data.Response_ReplayDownload): void {
|
||||
ServerDispatch.replayDownloaded(replayId, response.replayData);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,11 +6,7 @@ import { GameResponseImpl } from './GameResponseImpl';
|
|||
import { AdminResponseImpl } from './AdminResponseImpl';
|
||||
import { ModeratorResponseImpl } from './ModeratorResponseImpl';
|
||||
|
||||
export { SessionResponseImpl } from './SessionResponseImpl';
|
||||
export { RoomResponseImpl } from './RoomResponseImpl';
|
||||
export { GameResponseImpl } from './GameResponseImpl';
|
||||
export { AdminResponseImpl } from './AdminResponseImpl';
|
||||
export { ModeratorResponseImpl } from './ModeratorResponseImpl';
|
||||
export { SessionResponseImpl, RoomResponseImpl, GameResponseImpl, AdminResponseImpl, ModeratorResponseImpl };
|
||||
|
||||
export function createWebClientResponse(): IWebClientResponse {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue