diff --git a/common/src/types/events/lobby/create.ts b/common/src/types/events/lobby/create.ts deleted file mode 100644 index 42ebe6f..0000000 --- a/common/src/types/events/lobby/create.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { ServerResponse } from "../../ServerResponse"; -import { PlayerData } from "../../PlayerData"; - -/** - * The data that must be supplied to the server in order to create a game. - */ -export interface LobbyCreateRequest { - username: string; -} - -/** - * The data that is given to the client when they attempt to create a lobby. - */ -export interface LobbyCreateResponse extends ServerResponse { - - /** - * The ID of the lobby, this is used so that other players may join the - * game lobby. - */ - game_id?: string; - - /** - * The data for all of the players currently in the lobby. When this event - * is sent out, it will only contain the player who created the lobby since - * no other players have had a chance to connect to the lobby yet. - */ - players?: PlayerData[]; -} \ No newline at end of file diff --git a/common/src/types/events/lobby/join.ts b/common/src/types/events/lobby/join.ts deleted file mode 100644 index 6383fd7..0000000 --- a/common/src/types/events/lobby/join.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ServerResponse } from "../../ServerResponse"; -import { PlayerData } from "../../PlayerData"; - -/** The data required by the server to be able to join a game */ -export interface LobbyJoinRequest { - id: string; - name: string; -} - -/** The response that the player receives upon succesfully joining a game. */ -export interface LobbyJoinResponse extends ServerResponse { - players?: PlayerData[]; -} \ No newline at end of file diff --git a/common/src/types/events/players/update.ts b/common/src/types/events/players/update.ts deleted file mode 100644 index dff5eab..0000000 --- a/common/src/types/events/players/update.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ServerResponse } from "../../ServerResponse"; -import { PlayerData } from "../../PlayerData"; - -/** - * The data that the server is requesting connected clients use while updating - * their lobby information. - */ -export interface PlayerUpdateResponse extends ServerResponse { - players?: PlayerData[]; -} \ No newline at end of file