Flesh out payment stuff
This commit is contained in:
parent
b0dcdd6438
commit
acfed861ab
27 changed files with 938 additions and 173 deletions
5
types.ts
5
types.ts
|
|
@ -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 } };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue