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[] +}