diff --git a/src/components/GameWindow.vue b/src/components/GameWindow.vue index c49421a..6278628 100644 --- a/src/components/GameWindow.vue +++ b/src/components/GameWindow.vue @@ -7,16 +7,11 @@ import BeltBlock from './BeltBlock.vue'; import MetalPlate from './MetalPlate.vue'; import GameHeader from './GameHeader.vue'; import type { Application } from './application'; +import type { Door } from './door'; const router = useRouter(); const route = useRoute(); -type Door = { - code: string - name: string - show: boolean -} - type Action = { id: string place: string diff --git a/src/components/door.ts b/src/components/door.ts new file mode 100644 index 0000000..7888785 --- /dev/null +++ b/src/components/door.ts @@ -0,0 +1,12 @@ +// Дверь +// Выбор пути в диалоге с игроком +// Или действие игрока которое можно не использовать +// Или открытие действия без участия игрока +export type Door = { + // Код точки куда открывается дверь (Целевая точка должна существовать) + code: string + // Текст кнопки (Должен совпадать с названием целевой точки) + name: string + // Видимость кнопки + show: boolean +}