summaryrefslogtreecommitdiff
path: root/frontend/src/api
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-02-23 05:03:31 +0100
committerjbion <joffrey.bion@amadeus.com>2019-02-23 05:42:16 +0100
commit10646b1fe23b89a139e9e013ddf047b5fc11b99f (patch)
treec254c10bcb03f113236f4e2bc0b7ede70f7c081f /frontend/src/api
parentSend last card prepared event (diff)
downloadseven-wonders-10646b1fe23b89a139e9e013ddf047b5fc11b99f.tar.gz
seven-wonders-10646b1fe23b89a139e9e013ddf047b5fc11b99f.tar.bz2
seven-wonders-10646b1fe23b89a139e9e013ddf047b5fc11b99f.zip
Improve GameScene by showing the hand
Diffstat (limited to 'frontend/src/api')
-rw-r--r--frontend/src/api/model.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/frontend/src/api/model.js b/frontend/src/api/model.js
index 3408d5a2..f5c3481b 100644
--- a/frontend/src/api/model.js
+++ b/frontend/src/api/model.js
@@ -47,9 +47,21 @@ export type ApiTable = {
export type ApiAction = {};
-export type ApiHandCard = {};
+export type ApiCard = {
+ name: string,
+ image: string
+};
+
+export type ApiHandCard = ApiCard & {
+ playability: ApiPlayability
+};
+
+export type ApiPlayability = {
+ playable: boolean
+};
-export type ApiTableCard = {};
+export type ApiTableCard = ApiCard & {
+};
export type ApiCardBack = {
image: string
bgstack15