-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |