Refine setup and draft interactions
This commit is contained in:
13
src/types.ts
13
src/types.ts
@@ -14,6 +14,7 @@ export type Position = {
|
||||
|
||||
export type SetupState = {
|
||||
playerCount: number;
|
||||
playerNames: string[];
|
||||
columns: number;
|
||||
rows: number;
|
||||
startingNodesPerPlayer: number;
|
||||
@@ -164,7 +165,7 @@ export type RoundSummary = {
|
||||
};
|
||||
|
||||
export type ScoreSnapshot = {
|
||||
currentExposure: number;
|
||||
projectedIncome: number;
|
||||
growthPoints: number;
|
||||
bankedPoints: number;
|
||||
lifetimeGrowthIncome: number;
|
||||
@@ -195,8 +196,7 @@ export type WeatherCardId =
|
||||
| "wide_reach"
|
||||
| "tall_reward"
|
||||
| "stalemate"
|
||||
| "split_light"
|
||||
| "shared_light";
|
||||
| "split_light";
|
||||
|
||||
export type WeatherCardDefinition = {
|
||||
id: WeatherCardId;
|
||||
@@ -204,6 +204,11 @@ export type WeatherCardDefinition = {
|
||||
description: string;
|
||||
};
|
||||
|
||||
export type WeatherOfferPair = {
|
||||
id: string;
|
||||
options: [WeatherCardId, WeatherCardId];
|
||||
};
|
||||
|
||||
export type InitiativeDraftState = {
|
||||
biddingOrder: PlayerId[];
|
||||
biddingIndex: number;
|
||||
@@ -214,7 +219,7 @@ export type InitiativeDraftState = {
|
||||
export type WeatherDraftState = {
|
||||
playerOrder: PlayerId[];
|
||||
draftIndex: number;
|
||||
row: WeatherCardId[];
|
||||
offers: WeatherOfferPair[];
|
||||
drafted: WeatherCardId[];
|
||||
banned: WeatherCardId[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user