Remove old event data interfaces

This commit is contained in:
Oliver Akins 2022-03-07 00:49:16 -06:00
parent 281686dfef
commit 06cfea7564
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99
3 changed files with 0 additions and 51 deletions

View file

@ -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[];
}

View file

@ -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[];
}

View file

@ -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[];
}