Add chess premoves and time control metadata
- pass chess room time control to the client - add premove handling and richer chess board UI - update join result typing for room options
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@ export interface GameUIProps {
|
||||
onAction: (action: unknown) => void;
|
||||
players: { discordId: string; username: string }[];
|
||||
roundResult?: { payouts: Record<string, { net: number }> } | null;
|
||||
roomOptions?: { betAmount?: number };
|
||||
roomOptions?: { betAmount?: number; timeControl?: string };
|
||||
}
|
||||
|
||||
export interface GameUIPlugin {
|
||||
|
||||
@@ -21,7 +21,7 @@ interface GameRoomState {
|
||||
roundResult: RoundResult | null;
|
||||
error: string | null;
|
||||
sessionReplaced: boolean;
|
||||
roomOptions: { betAmount?: number };
|
||||
roomOptions: { betAmount?: number; timeControl?: string };
|
||||
}
|
||||
|
||||
export function useGameRoom(roomId: string, userId: string, role?: string, preferAs: "player" | "spectator" = "player") {
|
||||
|
||||
Reference in New Issue
Block a user