16 lines
511 B
TypeScript
16 lines
511 B
TypeScript
import type { GameCommand, GameStatus } from '../types/online.js'
|
|
|
|
export const gameStatuses = {
|
|
draft: { label: 'Черновик', type: 'info' },
|
|
run: { label: 'Идёт', type: 'success' },
|
|
pause: { label: 'Пауза', type: 'warning' },
|
|
finish: { label: 'Завершена', type: 'info' },
|
|
} as const
|
|
|
|
export const gameCommands: Record<GameStatus, GameCommand[]> = {
|
|
draft: ['start', 'finish'],
|
|
run: ['pause', 'finish', 'reset'],
|
|
pause: ['play', 'finish', 'reset'],
|
|
finish: ['reset'],
|
|
}
|