Flesh out payment stuff

This commit is contained in:
Joey Yakimowich-Payne 2026-01-22 12:21:12 -07:00
commit acfed861ab
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
27 changed files with 938 additions and 173 deletions

View file

@ -71,6 +71,7 @@ export interface GameConfig {
shuffleAnswers: boolean;
hostParticipates: boolean;
randomNamesEnabled: boolean;
maxPlayers: number;
streakBonusEnabled: boolean;
streakThreshold: number;
streakMultiplier: number;
@ -87,6 +88,7 @@ export const DEFAULT_GAME_CONFIG: GameConfig = {
shuffleAnswers: false,
hostParticipates: true,
randomNamesEnabled: false,
maxPlayers: 10,
streakBonusEnabled: false,
streakThreshold: 3,
streakMultiplier: 1.1,
@ -185,6 +187,7 @@ export interface QuizExportFile {
export type NetworkMessage =
| { type: 'JOIN'; payload: { name: string; reconnect?: boolean; previousId?: string } }
| { type: 'JOIN_DENIED'; payload: { reason?: string } }
| { type: 'WELCOME'; payload: {
playerId: string;
quizTitle: string;
@ -230,4 +233,4 @@ export type NetworkMessage =
| { type: 'KICK'; payload: { playerId: string } }
| { type: 'KICKED'; payload: { reason?: string } }
| { type: 'LEAVE'; payload: {} }
| { type: 'PLAYER_LEFT'; payload: { playerId: string } };
| { type: 'PLAYER_LEFT'; payload: { playerId: string } };