Refactor runtime-scene-build.ts by removing unused imports and properties
This commit is contained in:
@@ -62,9 +62,7 @@ import {
|
|||||||
} from "../document/world-settings";
|
} from "../document/world-settings";
|
||||||
import {
|
import {
|
||||||
cloneProjectDialogue,
|
cloneProjectDialogue,
|
||||||
cloneProjectDialogueLibrary,
|
type ProjectDialogue
|
||||||
type ProjectDialogue,
|
|
||||||
type ProjectDialogueLibrary
|
|
||||||
} from "../dialogues/project-dialogues";
|
} from "../dialogues/project-dialogues";
|
||||||
import {
|
import {
|
||||||
cloneProjectSequenceLibrary,
|
cloneProjectSequenceLibrary,
|
||||||
@@ -388,7 +386,6 @@ export interface RuntimeSpawnPoint {
|
|||||||
export interface RuntimeSceneDefinition {
|
export interface RuntimeSceneDefinition {
|
||||||
time: ProjectTimeSettings;
|
time: ProjectTimeSettings;
|
||||||
scheduler: RuntimeProjectSchedulerState;
|
scheduler: RuntimeProjectSchedulerState;
|
||||||
dialogues: ProjectDialogueLibrary;
|
|
||||||
sequences: ProjectSequenceLibrary;
|
sequences: ProjectSequenceLibrary;
|
||||||
world: WorldSettings;
|
world: WorldSettings;
|
||||||
control: RuntimeControlSurfaceDefinition;
|
control: RuntimeControlSurfaceDefinition;
|
||||||
@@ -1580,8 +1577,6 @@ export function buildRuntimeSceneFromDocument(
|
|||||||
case "playSound":
|
case "playSound":
|
||||||
case "stopSound":
|
case "stopSound":
|
||||||
return enabledEntityIds.has(link.action.targetSoundEmitterId);
|
return enabledEntityIds.has(link.action.targetSoundEmitterId);
|
||||||
case "startDialogue":
|
|
||||||
return document.dialogues.dialogues[link.action.dialogueId] !== undefined;
|
|
||||||
case "runSequence":
|
case "runSequence":
|
||||||
return getInteractionLinkImpulseSteps(link, document.sequences).length > 0;
|
return getInteractionLinkImpulseSteps(link, document.sequences).length > 0;
|
||||||
case "control":
|
case "control":
|
||||||
@@ -1653,7 +1648,6 @@ export function buildRuntimeSceneFromDocument(
|
|||||||
document: cloneProjectScheduler(document.scheduler),
|
document: cloneProjectScheduler(document.scheduler),
|
||||||
resolved: collections.scheduler
|
resolved: collections.scheduler
|
||||||
}),
|
}),
|
||||||
dialogues: cloneProjectDialogueLibrary(document.dialogues),
|
|
||||||
sequences: cloneProjectSequenceLibrary(document.sequences),
|
sequences: cloneProjectSequenceLibrary(document.sequences),
|
||||||
world: cloneWorldSettings(document.world),
|
world: cloneWorldSettings(document.world),
|
||||||
control,
|
control,
|
||||||
|
|||||||
Reference in New Issue
Block a user