feat: 收敛玩法运行时配置并加入故障恢复

This commit is contained in:
2026-04-01 13:04:26 +08:00
parent 1635a11780
commit 3ef841ecc7
73 changed files with 8820 additions and 2122 deletions

View File

@@ -1,14 +1,28 @@
import { EMPTY_HUD_PRESENTATION_STATE, type HudPresentationState } from './hudPresentationState'
import { EMPTY_MAP_PRESENTATION_STATE, type MapPresentationState } from './mapPresentationState'
export interface GameTargetingPresentationState {
punchableControlId: string | null
guidanceControlId: string | null
hudControlId: string | null
highlightedControlId: string | null
}
export interface GamePresentationState {
map: MapPresentationState
hud: HudPresentationState
targeting: GameTargetingPresentationState
}
export const EMPTY_GAME_PRESENTATION_STATE: GamePresentationState = {
map: EMPTY_MAP_PRESENTATION_STATE,
hud: EMPTY_HUD_PRESENTATION_STATE,
targeting: {
punchableControlId: null,
guidanceControlId: null,
hudControlId: null,
highlightedControlId: null,
},
}