Include dialogues in RuntimeSceneDefinition and update buildRuntimeSceneFromDocument
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user