gameSessionState.ts 529 B

12345678910111213141516
  1. export type GameSessionStatus = 'idle' | 'running' | 'finished' | 'failed'
  2. export type GuidanceState = 'searching' | 'approaching' | 'ready'
  3. export type GameModeState = Record<string, unknown> | null
  4. export interface GameSessionState {
  5. status: GameSessionStatus
  6. startedAt: number | null
  7. endedAt: number | null
  8. completedControlIds: string[]
  9. skippedControlIds: string[]
  10. currentTargetControlId: string | null
  11. inRangeControlId: string | null
  12. score: number
  13. guidanceState: GuidanceState
  14. modeState: GameModeState
  15. }