Update runtime-host.test.ts with new control effects and imports
This commit is contained in:
@@ -4,8 +4,10 @@ import { afterEach, describe, expect, it, vi } from "vitest";
|
|||||||
import {
|
import {
|
||||||
createActiveSceneControlTargetRef,
|
createActiveSceneControlTargetRef,
|
||||||
createActorControlTargetRef,
|
createActorControlTargetRef,
|
||||||
|
createFollowActorPathControlEffect,
|
||||||
createLightControlTargetRef,
|
createLightControlTargetRef,
|
||||||
createModelInstanceControlTargetRef,
|
createModelInstanceControlTargetRef,
|
||||||
|
createPlayActorAnimationControlEffect,
|
||||||
createPlayModelAnimationControlEffect,
|
createPlayModelAnimationControlEffect,
|
||||||
createPlaySoundControlEffect,
|
createPlaySoundControlEffect,
|
||||||
createSetActorPresenceControlEffect,
|
createSetActorPresenceControlEffect,
|
||||||
@@ -23,6 +25,7 @@ import {
|
|||||||
createStopModelAnimationControlEffect,
|
createStopModelAnimationControlEffect,
|
||||||
createStopSoundControlEffect
|
createStopSoundControlEffect
|
||||||
} from "../../src/controls/control-surface";
|
} from "../../src/controls/control-surface";
|
||||||
|
import { createScenePath } from "../../src/document/paths";
|
||||||
import { createEmptySceneDocument } from "../../src/document/scene-document";
|
import { createEmptySceneDocument } from "../../src/document/scene-document";
|
||||||
import {
|
import {
|
||||||
createNpcEntity,
|
createNpcEntity,
|
||||||
@@ -47,7 +50,8 @@ import {
|
|||||||
type RuntimeSceneLoadState
|
type RuntimeSceneLoadState
|
||||||
} from "../../src/runtime-three/runtime-host";
|
} from "../../src/runtime-three/runtime-host";
|
||||||
import { buildRuntimeSceneFromDocument } from "../../src/runtime-three/runtime-scene-build";
|
import { buildRuntimeSceneFromDocument } from "../../src/runtime-three/runtime-scene-build";
|
||||||
import type { AnimationMixer } from "three";
|
import { AnimationClip, BoxGeometry, type AnimationMixer } from "three";
|
||||||
|
import { createFixtureLoadedModelAssetFromGeometry } from "../helpers/model-collider-fixtures";
|
||||||
|
|
||||||
function createDeferred<T>() {
|
function createDeferred<T>() {
|
||||||
let resolve: ((value: T) => void) | null = null;
|
let resolve: ((value: T) => void) | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user