live player info in client
This commit is contained in:
parent
fb675e59ff
commit
a50a9770c9
1 changed files with 192 additions and 69 deletions
|
|
@ -12,14 +12,16 @@ export type ServerResponse<T> = {
|
|||
successResult?: T;
|
||||
}
|
||||
|
||||
export type Scores = {
|
||||
readonly kills: number;
|
||||
readonly deaths: number;
|
||||
readonly wallsDestroyed: number;
|
||||
};
|
||||
|
||||
export type Player = {
|
||||
readonly name: string;
|
||||
readonly id: Guid;
|
||||
readonly scores: {
|
||||
readonly kills: number;
|
||||
readonly deaths: number;
|
||||
readonly wallsDestroyed: number;
|
||||
};
|
||||
readonly scores: Scores;
|
||||
};
|
||||
|
||||
export type NameId = {
|
||||
|
|
|
|||
Reference in a new issue