live player info in client

This commit is contained in:
Vinzenz Schroeter 2024-04-22 19:03:07 +02:00
commit a50a9770c9

View file

@ -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 = {