Make data actually representative of what the client will get

This commit is contained in:
Oliver-Akins 2020-10-01 22:04:36 -06:00
parent 564206dd8b
commit 22a76984eb

View file

@ -12,15 +12,15 @@ interface HostInformation extends response {
// Event is only emitted when the JoinGame event is successful, so there is no // Event is only emitted when the JoinGame event is successful, so there is no
// success indicator in this response // success indicator in this response
interface NewPlayer { interface NewPlayer {
player: string; player?: string;
} }
interface GameJoined extends response { interface GameJoined extends response {
// properties depend on `success` being `true` // properties depend on `success` being `true`
players: string[]; players?: string[];
} }
interface PlayerListResponse extends response { interface PlayerListResponse extends response {
// properties depend on `success` being `true` // properties depend on `success` being `true`
players: string[] players?: string[]
} }