Remove old event data interfaces
This commit is contained in:
parent
281686dfef
commit
06cfea7564
3 changed files with 0 additions and 51 deletions
|
|
@ -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[];
|
||||
}
|
||||
|
|
@ -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[];
|
||||
}
|
||||
|
|
@ -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[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue