Refactor scene transition handling in runtime-interaction-system.ts

This commit is contained in:
2026-04-15 02:02:30 +02:00
parent 1db3449be4
commit 8234e2fb6b

View File

@@ -14,7 +14,6 @@ import type {
RuntimeInteractable,
RuntimeNpc,
RuntimeSceneDefinition,
RuntimeSceneExit,
RuntimeTeleportTarget,
RuntimeTriggerVolume
} from "./runtime-scene-build";
@@ -31,7 +30,14 @@ export interface RuntimeDialogueStartSource {
export interface RuntimeInteractionDispatcher {
teleportPlayer(target: RuntimeTeleportTarget, link: InteractionLink): void;
activateSceneExit(sceneExit: RuntimeSceneExit): void;
startSceneTransition(
request: {
sourceEntityId: string | null;
targetSceneId: string;
targetEntryEntityId: string;
},
link: InteractionLink | null
): void;
toggleBrushVisibility(
brushId: string,
visible: boolean | undefined,