完善联调标准化与诊断链路
This commit is contained in:
@@ -1108,6 +1108,7 @@ export class MapEngine {
|
||||
configAppId: string
|
||||
configSchemaVersion: string
|
||||
configVersion: string
|
||||
playfieldKind: string
|
||||
controlScoreOverrides: Record<string, number>
|
||||
controlContentOverrides: Record<string, GameControlDisplayContentOverride>
|
||||
defaultControlContentOverride: GameControlDisplayContentOverride | null
|
||||
@@ -1417,6 +1418,7 @@ export class MapEngine {
|
||||
this.configAppId = ''
|
||||
this.configSchemaVersion = '1'
|
||||
this.configVersion = ''
|
||||
this.playfieldKind = ''
|
||||
this.controlScoreOverrides = {}
|
||||
this.controlContentOverrides = {}
|
||||
this.defaultControlContentOverride = null
|
||||
@@ -1721,6 +1723,8 @@ export class MapEngine {
|
||||
{ label: '比赛名称', value: title || '--' },
|
||||
{ label: '配置版本', value: this.configVersion || '--' },
|
||||
{ label: 'Schema版本', value: this.configSchemaVersion || '--' },
|
||||
{ label: '场地类型', value: this.playfieldKind || '--' },
|
||||
{ label: '模式编码', value: this.gameMode || '--' },
|
||||
{ label: '活动ID', value: this.configAppId || '--' },
|
||||
{ label: '动画等级', value: formatAnimationLevelText(this.state.animationLevel) },
|
||||
{ label: '地图', value: this.state.mapName || '--' },
|
||||
@@ -3423,8 +3427,8 @@ export class MapEngine {
|
||||
this.courseOverlayVisible = true
|
||||
const gameModeText = this.gameMode === 'score-o' ? '积分赛' : '顺序打点'
|
||||
const defaultStatusText = this.currentGpsPoint
|
||||
? `${gameModeText}已开始 (${this.buildVersion})`
|
||||
: `${gameModeText}已开始,GPS定位启动中 (${this.buildVersion})`
|
||||
? `已进入${gameModeText},请先打开始点 (${this.buildVersion})`
|
||||
: `已进入${gameModeText},GPS定位启动中,请先打开始点 (${this.buildVersion})`
|
||||
this.commitGameResult(gameResult, defaultStatusText)
|
||||
}
|
||||
|
||||
@@ -3683,6 +3687,15 @@ export class MapEngine {
|
||||
this.mockSimulatorDebugLogger.disconnect()
|
||||
}
|
||||
|
||||
handleEmitMockDebugLog(
|
||||
scope: string,
|
||||
level: 'info' | 'warn' | 'error',
|
||||
message: string,
|
||||
payload?: Record<string, unknown>,
|
||||
): void {
|
||||
this.mockSimulatorDebugLogger.log(scope, level, message, payload)
|
||||
}
|
||||
|
||||
handleSetGameMode(nextMode: 'classic-sequential' | 'score-o'): void {
|
||||
if (this.gameMode === nextMode) {
|
||||
return
|
||||
@@ -3882,6 +3895,7 @@ export class MapEngine {
|
||||
this.configAppId = config.configAppId
|
||||
this.configSchemaVersion = config.configSchemaVersion
|
||||
this.configVersion = config.configVersion
|
||||
this.playfieldKind = config.playfieldKind
|
||||
this.controlScoreOverrides = config.controlScoreOverrides
|
||||
this.controlContentOverrides = config.controlContentOverrides
|
||||
this.defaultControlContentOverride = config.defaultControlContentOverride
|
||||
|
||||
Reference in New Issue
Block a user