Refactor draft options
This commit is contained in:
parent
5688e499fc
commit
5daa94b9ad
1 changed files with 24 additions and 5 deletions
|
@ -20,27 +20,46 @@ export interface AlternateProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetDraftOptions {
|
export interface SetDraftOptions {
|
||||||
type: "set";
|
source: "set";
|
||||||
set: string;
|
set: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BlockDraftOptions {
|
export interface BlockDraftOptions {
|
||||||
type: "block";
|
source: "block";
|
||||||
block: string;
|
block: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CubeDraftOptions {
|
export interface CubeDraftOptions {
|
||||||
type: "cube";
|
source: "cube";
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface I8PCubeDraftOptions {
|
export interface I8PCubeDraftOptions {
|
||||||
type: "i8pcube";
|
source: "i8pcube";
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DraftOptions =
|
export interface LimitedBoosterDraft {
|
||||||
|
type: "booster-draft";
|
||||||
|
packs: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface LimitedSealedDraft {
|
||||||
|
type: "sealed";
|
||||||
|
packs: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LimitedGameType = LimitedBoosterDraft | LimitedSealedDraft;
|
||||||
|
|
||||||
|
export type DraftType =
|
||||||
| SetDraftOptions
|
| SetDraftOptions
|
||||||
| BlockDraftOptions
|
| BlockDraftOptions
|
||||||
| CubeDraftOptions
|
| CubeDraftOptions
|
||||||
| I8PCubeDraftOptions;
|
| I8PCubeDraftOptions;
|
||||||
|
|
||||||
|
export interface SessionOptions {
|
||||||
|
players: number;
|
||||||
|
spacing: "evenly" | "randomly";
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DraftOptions = SessionOptions & LimitedGameType & DraftType;
|
||||||
|
|
Loading…
Reference in a new issue