Update RuntimeHost interface and add activeScheduledImpulseRoutineIds
This commit is contained in:
@@ -89,6 +89,7 @@ import {
|
|||||||
import { getNpcColliderHeight } from "../entities/entity-instances";
|
import { getNpcColliderHeight } from "../entities/entity-instances";
|
||||||
import type { InteractionLink } from "../interactions/interaction-links";
|
import type { InteractionLink } from "../interactions/interaction-links";
|
||||||
import type {
|
import type {
|
||||||
|
ImpulseSequenceStep,
|
||||||
SequenceVisibilityMode,
|
SequenceVisibilityMode,
|
||||||
SequenceVisibilityTarget
|
SequenceVisibilityTarget
|
||||||
} from "../sequencer/project-sequence-steps";
|
} from "../sequencer/project-sequence-steps";
|
||||||
@@ -198,8 +199,8 @@ export interface RuntimeSceneLoadState {
|
|||||||
message: string | null;
|
message: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RuntimeSceneExitTransitionRequest {
|
export interface RuntimeSceneTransitionRequest {
|
||||||
sourceExitEntityId: string;
|
sourceEntityId: string | null;
|
||||||
targetSceneId: string;
|
targetSceneId: string;
|
||||||
targetEntryEntityId: string;
|
targetEntryEntityId: string;
|
||||||
}
|
}
|
||||||
@@ -302,8 +303,8 @@ export class RuntimeHost {
|
|||||||
private sceneLoadStateHandler:
|
private sceneLoadStateHandler:
|
||||||
| ((state: RuntimeSceneLoadState) => void)
|
| ((state: RuntimeSceneLoadState) => void)
|
||||||
| null = null;
|
| null = null;
|
||||||
private sceneExitHandler:
|
private sceneTransitionHandler:
|
||||||
| ((request: RuntimeSceneExitTransitionRequest) => void)
|
| ((request: RuntimeSceneTransitionRequest) => void)
|
||||||
| null = null;
|
| null = null;
|
||||||
private currentRuntimeMessage: string | null = null;
|
private currentRuntimeMessage: string | null = null;
|
||||||
private currentPlayerControllerTelemetry: PlayerControllerTelemetry | null =
|
private currentPlayerControllerTelemetry: PlayerControllerTelemetry | null =
|
||||||
@@ -332,6 +333,7 @@ export class RuntimeHost {
|
|||||||
private controlPauseActive = false;
|
private controlPauseActive = false;
|
||||||
private previousPauseInputActive = false;
|
private previousPauseInputActive = false;
|
||||||
private readonly pressedKeys = new Set<string>();
|
private readonly pressedKeys = new Set<string>();
|
||||||
|
private activeScheduledImpulseRoutineIds = new Set<string>();
|
||||||
|
|
||||||
constructor(options: { enableRendering?: boolean } = {}) {
|
constructor(options: { enableRendering?: boolean } = {}) {
|
||||||
const enableRendering = options.enableRendering ?? true;
|
const enableRendering = options.enableRendering ?? true;
|
||||||
|
|||||||
Reference in New Issue
Block a user