Add presenter role for game flow control
This commit is contained in:
parent
99977bc8e6
commit
9ef8f7343d
10 changed files with 1412 additions and 17 deletions
5
types.ts
5
types.ts
|
|
@ -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' } };
|
||||
Loading…
Add table
Add a link
Reference in a new issue