Rename activateSceneExit to startSceneTransition

This commit is contained in:
2026-04-15 03:47:47 +02:00
parent 7dd37630b1
commit 1d52eecfcc

View File

@@ -146,7 +146,6 @@ function createRuntimeSceneFixture(): RuntimeSceneDefinition {
interactionEnabled: false interactionEnabled: false
} }
], ],
sceneExits: []
}, },
interactionLinks: [], interactionLinks: [],
control: createEmptyRuntimeControlSurfaceDefinition(), control: createEmptyRuntimeControlSurfaceDefinition(),
@@ -186,7 +185,7 @@ function createDispatcher(
): RuntimeInteractionDispatcher { ): RuntimeInteractionDispatcher {
return { return {
teleportPlayer: () => {}, teleportPlayer: () => {},
activateSceneExit: () => {}, startSceneTransition: () => {},
toggleBrushVisibility: () => {}, toggleBrushVisibility: () => {},
playAnimation: () => {}, playAnimation: () => {},
stopAnimation: () => {}, stopAnimation: () => {},
@@ -223,7 +222,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: (target, link) => { teleportPlayer: (target, link) => {
dispatches.push(`${link.id}:${target.entityId}:${target.position.x}`); dispatches.push(`${link.id}:${target.entityId}:${target.position.x}`);
}, },
activateSceneExit: () => {}, startSceneTransition: () => {},
toggleBrushVisibility: () => { toggleBrushVisibility: () => {
dispatches.push("toggle"); dispatches.push("toggle");
}, },
@@ -245,7 +244,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: (target, link) => { teleportPlayer: (target, link) => {
dispatches.push(`${link.id}:${target.entityId}:${target.position.x}`); dispatches.push(`${link.id}:${target.entityId}:${target.position.x}`);
}, },
activateSceneExit: () => {}, startSceneTransition: () => {},
toggleBrushVisibility: () => { toggleBrushVisibility: () => {
dispatches.push("toggle"); dispatches.push("toggle");
}, },
@@ -289,7 +288,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: () => { teleportPlayer: () => {
throw new Error("Teleport should not dispatch in this fixture."); throw new Error("Teleport should not dispatch in this fixture.");
}, },
activateSceneExit: () => { startSceneTransition: () => {
throw new Error("Scene exit should not dispatch in this fixture."); throw new Error("Scene exit should not dispatch in this fixture.");
}, },
toggleBrushVisibility: () => { toggleBrushVisibility: () => {
@@ -342,7 +341,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: () => { teleportPlayer: () => {
throw new Error("Teleport should not dispatch in this fixture."); throw new Error("Teleport should not dispatch in this fixture.");
}, },
activateSceneExit: () => { startSceneTransition: () => {
throw new Error("Scene exit should not dispatch in this fixture."); throw new Error("Scene exit should not dispatch in this fixture.");
}, },
toggleBrushVisibility: (brushId, visible) => { toggleBrushVisibility: (brushId, visible) => {
@@ -369,7 +368,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: () => { teleportPlayer: () => {
throw new Error("Teleport should not dispatch in this fixture."); throw new Error("Teleport should not dispatch in this fixture.");
}, },
activateSceneExit: () => { startSceneTransition: () => {
throw new Error("Scene exit should not dispatch in this fixture."); throw new Error("Scene exit should not dispatch in this fixture.");
}, },
toggleBrushVisibility: (brushId, visible) => { toggleBrushVisibility: (brushId, visible) => {
@@ -516,7 +515,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: (target, link) => { teleportPlayer: (target, link) => {
dispatches.push(`${link.id}:${target.entityId}:${target.position.x}`); dispatches.push(`${link.id}:${target.entityId}:${target.position.x}`);
}, },
activateSceneExit: () => { startSceneTransition: () => {
throw new Error( throw new Error(
"Scene exit should not dispatch for this click fixture." "Scene exit should not dispatch for this click fixture."
); );
@@ -564,7 +563,7 @@ describe("RuntimeInteractionSystem", () => {
teleportPlayer: () => { teleportPlayer: () => {
throw new Error("Teleport should not dispatch in this fixture."); throw new Error("Teleport should not dispatch in this fixture.");
}, },
activateSceneExit: () => { startSceneTransition: () => {
throw new Error("Scene exit should not dispatch in this fixture."); throw new Error("Scene exit should not dispatch in this fixture.");
}, },
toggleBrushVisibility: () => { toggleBrushVisibility: () => {