From 80d581e3b6f40a3687437fd4a9874e1b3792861b Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sat, 21 Mar 2026 00:37:58 +0700 Subject: [PATCH] add team --- src/components/GameWindow.vue | 6 +----- src/components/team.ts | 9 +++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 src/components/team.ts diff --git a/src/components/GameWindow.vue b/src/components/GameWindow.vue index c607646..4434200 100644 --- a/src/components/GameWindow.vue +++ b/src/components/GameWindow.vue @@ -8,15 +8,11 @@ import MetalPlate from './MetalPlate.vue'; import GameHeader from './GameHeader.vue'; import type { Action } from './action'; import type { Door } from './door'; +import type { Team } from './team'; const router = useRouter(); const route = useRoute(); -type Team = { - name: string - actions: Action[] -} - const inputPlace = ref(false) const login = ref("") const password = ref("") diff --git a/src/components/team.ts b/src/components/team.ts new file mode 100644 index 0000000..88c0d46 --- /dev/null +++ b/src/components/team.ts @@ -0,0 +1,9 @@ +import type { Action } from './action' + +// Команда +export type Team = { + // Название + name: string + // Совершенные действия + actions: Action[] +}