Include dialogues in RuntimeSceneDefinition and update buildRuntimeSceneFromDocument

This commit is contained in:
2026-04-14 19:55:23 +02:00
parent e48ebeae87
commit 65cdd4529b

View File

@@ -57,6 +57,10 @@ import {
cloneWorldSettings,
type WorldSettings
} from "../document/world-settings";
import {
cloneProjectDialogueLibrary,
type ProjectDialogueLibrary
} from "../dialogues/project-dialogues";
import {
type CharacterColliderSettings,
clonePlayerStartInputBindings,
@@ -379,6 +383,7 @@ export interface RuntimeSpawnPoint {
export interface RuntimeSceneDefinition {
time: ProjectTimeSettings;
scheduler: RuntimeProjectSchedulerState;
dialogues: ProjectDialogueLibrary;
world: WorldSettings;
control: RuntimeControlSurfaceDefinition;
localLights: RuntimeLocalLightCollection;
@@ -1657,6 +1662,7 @@ export function buildRuntimeSceneFromDocument(
document: cloneProjectScheduler(document.scheduler),
resolved: collections.scheduler
}),
dialogues: cloneProjectDialogueLibrary(document.dialogues),
world: cloneWorldSettings(document.world),
control,
localLights: collections.localLights,