presentationState.ts 814 B

12345678910111213141516171819202122232425262728
  1. import { EMPTY_HUD_PRESENTATION_STATE, type HudPresentationState } from './hudPresentationState'
  2. import { EMPTY_MAP_PRESENTATION_STATE, type MapPresentationState } from './mapPresentationState'
  3. export interface GameTargetingPresentationState {
  4. punchableControlId: string | null
  5. guidanceControlId: string | null
  6. hudControlId: string | null
  7. highlightedControlId: string | null
  8. }
  9. export interface GamePresentationState {
  10. map: MapPresentationState
  11. hud: HudPresentationState
  12. targeting: GameTargetingPresentationState
  13. }
  14. export const EMPTY_GAME_PRESENTATION_STATE: GamePresentationState = {
  15. map: EMPTY_MAP_PRESENTATION_STATE,
  16. hud: EMPTY_HUD_PRESENTATION_STATE,
  17. targeting: {
  18. punchableControlId: null,
  19. guidanceControlId: null,
  20. hudControlId: null,
  21. highlightedControlId: null,
  22. },
  23. }