diff options
Diffstat (limited to 'frontend/src/api/model.js')
-rw-r--r-- | frontend/src/api/model.js | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/frontend/src/api/model.js b/frontend/src/api/model.js index 5d1f92c6..3408d5a2 100644 --- a/frontend/src/api/model.js +++ b/frontend/src/api/model.js @@ -37,18 +37,28 @@ export type ApiPlayer = { username: string, displayName: string, index: number, - ready: boolean + gameOwner: Boolean, + user: Boolean, }; -export type ApiTable = {}; +export type ApiTable = { + +}; export type ApiAction = {}; export type ApiHandCard = {}; -export type ApiCard = {}; +export type ApiTableCard = {}; -export type ApiPreparedCard = {}; +export type ApiCardBack = { + image: string +}; + +export type ApiPreparedCard = { + player: ApiPlayer, + cardBack: ApiCardBack +}; export type ApiPlayerTurnInfo = { playerIndex: number, @@ -56,7 +66,7 @@ export type ApiPlayerTurnInfo = { currentAge: number, action: ApiAction, hand: ApiHandCard[], - neighbourGuildCards: ApiCard[], + neighbourGuildCards: ApiTableCard[], message: string }; |