Add player timing and profile links to server scoreboard

This commit is contained in:
2026-09-20 22:03:58 -04:00
parent 3a63e6d3ce
commit 1e6ff3abbf
7 changed files with 79 additions and 13 deletions
+10 -1
View File
@@ -16,7 +16,16 @@ export type GameEvent = { server: string; map: string } & (
| { event: 'round_change' | 'heartbeat' | 'game_end'; round: number; players: TelemetryPlayerStats[] }
);
export type GameTelemetry = GameEvent & { receivedAt: string };
export interface PlayerTiming {
serverJoinedAt: string;
matchJoinedAt: string;
roundStarted: number | null;
}
export type GameTelemetry = GameEvent & {
receivedAt: string;
timing?: { matchId: number; players: Record<string, PlayerTiming> };
};
/** Validate the four script payloads; beta state is never part of the protocol. */
export function parseGameEvent(value: unknown): GameEvent {