summaryrefslogtreecommitdiff
path: root/frontend/src/api
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-24 01:50:26 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-24 01:50:26 +0100
commit3c8b01f3ab690362268aace634e574c1a7b63888 (patch)
treea8c955ebd9b1f5290422c725f68f50e7067d0e09 /frontend/src/api
parentImprove GameScene by showing the hand (diff)
downloadseven-wonders-3c8b01f3ab690362268aace634e574c1a7b63888.tar.gz
seven-wonders-3c8b01f3ab690362268aace634e574c1a7b63888.tar.bz2
seven-wonders-3c8b01f3ab690362268aace634e574c1a7b63888.zip
Add prepare move actions
Diffstat (limited to 'frontend/src/api')
-rw-r--r--frontend/src/api/model.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/src/api/model.js b/frontend/src/api/model.js
index f5c3481b..54be5cf8 100644
--- a/frontend/src/api/model.js
+++ b/frontend/src/api/model.js
@@ -79,9 +79,14 @@ export type ApiPlayerTurnInfo = {
action: ApiAction,
hand: ApiHandCard[],
neighbourGuildCards: ApiTableCard[],
- message: string
+ message: string,
+ wonderBuildability: ApiWonderBuildability,
};
+export type ApiWonderBuildability = {
+ buildable: boolean
+}
+
export type ApiMoveType = "PLAY" | "PLAY_FREE" | "UPGRADE_WONDER" | "DISCARD" | "COPY_GUILD";
export type ApiProvider = "LEFT_NEIGHBOUR" | "RIGHT_NEIGHBOUR";
export type ApiResourceType = "WOOD" | "STONE" | "ORE" | "CLAY" | "GLASS" | "PAPYRUS" | "LOOM";
bgstack15