Add presenter role for game flow control

This commit is contained in:
Joey Yakimowich-Payne 2026-01-19 14:02:28 -07:00
commit 9ef8f7343d
No known key found for this signature in database
GPG key ID: DDF6AF5B21B407D4
10 changed files with 1412 additions and 17 deletions

View file

@ -203,6 +203,7 @@ export type NetworkMessage =
correctShape?: string;
timeLeft?: number;
assignedName?: string;
presenterId?: string | null;
} }
| { type: 'PLAYER_JOINED'; payload: { player: Player } }
| { type: 'GAME_START'; payload: {} }
@ -223,4 +224,6 @@ export type NetworkMessage =
| { type: 'TIME_SYNC'; payload: { timeLeft: number } }
| { type: 'TIME_UP'; payload: {} }
| { type: 'SHOW_SCOREBOARD'; payload: { players: Player[] } }
| { type: 'GAME_OVER'; payload: { players: Player[] } };
| { type: 'GAME_OVER'; payload: { players: Player[] } }
| { type: 'PRESENTER_CHANGED'; payload: { presenterId: string | null } }
| { type: 'ADVANCE'; payload: { action: 'START' | 'NEXT' | 'SCOREBOARD' } };