Skip to content

Commit

Permalink
added GameDef
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Sep 18, 2024
1 parent 8059ff0 commit a3c10f9
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions src/api/types/GameDef.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
export interface GameDef {
title: string;
playerSizes: number[];
bgColor?: string;
fontColor?: string;
primaryColor?: string;
secondaryColor?: string;
fontFamily?: string;
winMode?: string;
title: string; // The name of the game
playerSizes: number[]; // An array of all possible player counts
rows: RowDef[]; // An array of rows
bgColor?: string; // The background color to be used
fontColor?: string; // The font color to be used
primaryColor?: string; // The primary color to be used
secondaryColor?: string; // The secondary color to be used
stripeColor?: string; // The color of the stripes
fontFamily?: string; // The font family to be used
winMode?: string; // The winnning mode
extensions?: { [name: string]: ExtensionDef }; // Specify Extensions
roundMapper?: { [playerCount: number]: number }; // A mapping of player count to round count
}

export interface RowDef {
name: string; // The name of the row
icon?: string; // The icon to be displayed for the row
description?: string; // The description of the row
bgColor?: string; // The background color to be used only for this row
negative?: boolean; // Whether this row is negative
}

export interface ExtensionDef {
rows: RowDef[]; // The rows to add for this extension
}

0 comments on commit a3c10f9

Please sign in to comment.