indicate in game state whose turn it is
This commit is contained in:
2
site/components.d.ts
vendored
2
site/components.d.ts
vendored
@@ -8,9 +8,7 @@ export {}
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
Game: typeof import('./src/components/Game.vue')['default']
|
||||
GameRound: typeof import('./src/components/GameRound.vue')['default']
|
||||
GameStatus: typeof import('./src/components/GameStatus.vue')['default']
|
||||
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
|
||||
Player: typeof import('./src/components/Player.vue')['default']
|
||||
PlayerHP: typeof import('./src/components/PlayerHP.vue')['default']
|
||||
PlayerItems: typeof import('./src/components/PlayerItems.vue')['default']
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<v-container>
|
||||
<v-row class="d-flex justify-center">
|
||||
<v-sheet :elevation="2" width="800" height="600">
|
||||
<v-sheet :elevation="2" width="800">
|
||||
<v-row class="d-flex justify-center">
|
||||
<v-col cols="auto">
|
||||
<GameStatus :game="testGame" />
|
||||
@@ -32,6 +32,7 @@ const testGame: Game = {
|
||||
{ hp: 3, items: ['🔍', '🔍', '', '', '', '', '', ''] },
|
||||
],
|
||||
round: 1,
|
||||
dealer: true,
|
||||
damage: 1,
|
||||
previous: true,
|
||||
};
|
||||
|
@@ -11,6 +11,10 @@ export interface Game {
|
||||
* Round number.
|
||||
*/
|
||||
round: number;
|
||||
/**
|
||||
* Whether it is the dealer's turn.
|
||||
*/
|
||||
dealer: boolean;
|
||||
/**
|
||||
* Damage that a live round will deal this turn.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user