diff options
author | jbion <joffrey.bion@amadeus.com> | 2019-02-24 01:50:26 +0100 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2019-02-24 01:50:26 +0100 |
commit | 3c8b01f3ab690362268aace634e574c1a7b63888 (patch) | |
tree | a8c955ebd9b1f5290422c725f68f50e7067d0e09 /frontend/src/api | |
parent | Improve GameScene by showing the hand (diff) | |
download | seven-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.js | 7 |
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"; |