mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 04:23:55 -07:00
19 lines
734 B
TypeScript
19 lines
734 B
TypeScript
import type { IWebClientResponse } from '@app/websocket';
|
|
|
|
import { SessionResponseImpl } from './SessionResponseImpl';
|
|
import { RoomResponseImpl } from './RoomResponseImpl';
|
|
import { GameResponseImpl } from './GameResponseImpl';
|
|
import { AdminResponseImpl } from './AdminResponseImpl';
|
|
import { ModeratorResponseImpl } from './ModeratorResponseImpl';
|
|
|
|
export { SessionResponseImpl, RoomResponseImpl, GameResponseImpl, AdminResponseImpl, ModeratorResponseImpl };
|
|
|
|
export function createWebClientResponse(): IWebClientResponse {
|
|
return {
|
|
session: new SessionResponseImpl(),
|
|
room: new RoomResponseImpl(),
|
|
game: new GameResponseImpl(),
|
|
admin: new AdminResponseImpl(),
|
|
moderator: new ModeratorResponseImpl(),
|
|
};
|
|
}
|