Add score-o mode and split game map HUD presentation
This commit is contained in:
@@ -268,14 +268,15 @@ export class TelemetryRuntime {
|
||||
this.reset()
|
||||
}
|
||||
|
||||
syncGameState(definition: GameDefinition | null, state: GameSessionState | null): void {
|
||||
syncGameState(definition: GameDefinition | null, state: GameSessionState | null, hudTargetControlId?: string | null): void {
|
||||
if (!definition || !state) {
|
||||
this.dispatch({ type: 'reset' })
|
||||
return
|
||||
}
|
||||
|
||||
const targetControl = state.currentTargetControlId
|
||||
? definition.controls.find((control) => control.id === state.currentTargetControlId) || null
|
||||
const targetControlId = hudTargetControlId !== undefined ? hudTargetControlId : state.currentTargetControlId
|
||||
const targetControl = targetControlId
|
||||
? definition.controls.find((control) => control.id === targetControlId) || null
|
||||
: null
|
||||
|
||||
this.dispatch({
|
||||
|
||||
Reference in New Issue
Block a user