more scores

This commit is contained in:
Vinzenz Schroeter 2024-04-22 21:26:46 +02:00
commit 10f022c849

View file

@ -1,7 +1,7 @@
import {Guid} from './Guid.ts';
export function makeApiUrl(path: string, protocol: 'http' | 'ws' = 'http') {
return new URL(`${protocol}://${window.location.hostname}${path}`);
return new URL(`${protocol}://${window.location.hostname}${path}`);
}
export type ServerResponse<T> = {
@ -16,6 +16,8 @@ export type Scores = {
readonly kills: number;
readonly deaths: number;
readonly wallsDestroyed: number;
readonly shotsFired: number;
readonly overallScore: number;
};
export type Player = {