From dfaad68a937404c74fce9a80eb50cc73f1041951 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Sun, 26 May 2024 15:49:08 +0200 Subject: [PATCH] Chore: rework Lobby interface --- client/index.ts | 3 +++ generic/index.ts | 1 - server/index.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/index.ts b/client/index.ts index 3e32358..5a02ea8 100644 --- a/client/index.ts +++ b/client/index.ts @@ -55,4 +55,7 @@ export interface ICUser extends IUser { } export interface ICLobby extends ILobby { request_createGame: () => Promise> + + onAddGame: () => void + onRemoveGame: () => void } \ No newline at end of file diff --git a/generic/index.ts b/generic/index.ts index 265a646..fe92094 100644 --- a/generic/index.ts +++ b/generic/index.ts @@ -92,5 +92,4 @@ export interface IUser extends IGameObject { export interface ILobby extends IGameObject { - removeGame: () => void } \ No newline at end of file diff --git a/server/index.ts b/server/index.ts index c051d59..9ac1c24 100644 --- a/server/index.ts +++ b/server/index.ts @@ -61,5 +61,6 @@ export interface ISLobby extends ILobby { request_createGame: (query: ISQuery) => void request_login: (query: ISQuery) => void + removeGame: () => void subscribe: (query: ISQuery) => any } \ No newline at end of file