Include dialogues in RuntimeSceneDefinition and update buildRuntimeSceneFromDocument
This commit is contained in:
@@ -57,6 +57,10 @@ import {
|
|||||||
cloneWorldSettings,
|
cloneWorldSettings,
|
||||||
type WorldSettings
|
type WorldSettings
|
||||||
} from "../document/world-settings";
|
} from "../document/world-settings";
|
||||||
|
import {
|
||||||
|
cloneProjectDialogueLibrary,
|
||||||
|
type ProjectDialogueLibrary
|
||||||
|
} from "../dialogues/project-dialogues";
|
||||||
import {
|
import {
|
||||||
type CharacterColliderSettings,
|
type CharacterColliderSettings,
|
||||||
clonePlayerStartInputBindings,
|
clonePlayerStartInputBindings,
|
||||||
@@ -379,6 +383,7 @@ export interface RuntimeSpawnPoint {
|
|||||||
export interface RuntimeSceneDefinition {
|
export interface RuntimeSceneDefinition {
|
||||||
time: ProjectTimeSettings;
|
time: ProjectTimeSettings;
|
||||||
scheduler: RuntimeProjectSchedulerState;
|
scheduler: RuntimeProjectSchedulerState;
|
||||||
|
dialogues: ProjectDialogueLibrary;
|
||||||
world: WorldSettings;
|
world: WorldSettings;
|
||||||
control: RuntimeControlSurfaceDefinition;
|
control: RuntimeControlSurfaceDefinition;
|
||||||
localLights: RuntimeLocalLightCollection;
|
localLights: RuntimeLocalLightCollection;
|
||||||
@@ -1657,6 +1662,7 @@ export function buildRuntimeSceneFromDocument(
|
|||||||
document: cloneProjectScheduler(document.scheduler),
|
document: cloneProjectScheduler(document.scheduler),
|
||||||
resolved: collections.scheduler
|
resolved: collections.scheduler
|
||||||
}),
|
}),
|
||||||
|
dialogues: cloneProjectDialogueLibrary(document.dialogues),
|
||||||
world: cloneWorldSettings(document.world),
|
world: cloneWorldSettings(document.world),
|
||||||
control,
|
control,
|
||||||
localLights: collections.localLights,
|
localLights: collections.localLights,
|
||||||
|
|||||||
Reference in New Issue
Block a user