presentationState.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. export interface GamePresentationState {
  2. activeControlIds: string[]
  3. activeControlSequences: number[]
  4. activeStart: boolean
  5. completedStart: boolean
  6. activeFinish: boolean
  7. completedFinish: boolean
  8. revealFullCourse: boolean
  9. activeLegIndices: number[]
  10. completedLegIndices: number[]
  11. completedControlIds: string[]
  12. completedControlSequences: number[]
  13. progressText: string
  14. punchableControlId: string | null
  15. punchButtonEnabled: boolean
  16. punchButtonText: string
  17. punchHintText: string
  18. }
  19. export const EMPTY_GAME_PRESENTATION_STATE: GamePresentationState = {
  20. activeControlIds: [],
  21. activeControlSequences: [],
  22. activeStart: false,
  23. completedStart: false,
  24. activeFinish: false,
  25. completedFinish: false,
  26. revealFullCourse: false,
  27. activeLegIndices: [],
  28. completedLegIndices: [],
  29. completedControlIds: [],
  30. completedControlSequences: [],
  31. progressText: '0/0',
  32. punchableControlId: null,
  33. punchButtonEnabled: false,
  34. punchButtonText: '打点',
  35. punchHintText: '等待进入检查点范围',
  36. }