auto-git:
[change] tests/domain/runtime-control-foundation.test.ts
This commit is contained in:
@@ -7,6 +7,8 @@ import {
|
|||||||
type ModelAssetRecord
|
type ModelAssetRecord
|
||||||
} from "../../src/assets/project-assets";
|
} from "../../src/assets/project-assets";
|
||||||
import {
|
import {
|
||||||
|
createCameraRigEntity,
|
||||||
|
createCameraRigWorldPointTargetRef,
|
||||||
createInteractableEntity,
|
createInteractableEntity,
|
||||||
createNpcEntity,
|
createNpcEntity,
|
||||||
createPointLightEntity,
|
createPointLightEntity,
|
||||||
@@ -47,6 +49,14 @@ describe("runtime control foundation", () => {
|
|||||||
id: "entity-npc-vendor",
|
id: "entity-npc-vendor",
|
||||||
actorId: "actor-market-vendor"
|
actorId: "actor-market-vendor"
|
||||||
});
|
});
|
||||||
|
const cameraRig = createCameraRigEntity({
|
||||||
|
id: "entity-camera-rig-main",
|
||||||
|
target: createCameraRigWorldPointTargetRef({
|
||||||
|
x: 0,
|
||||||
|
y: 1.5,
|
||||||
|
z: 0
|
||||||
|
})
|
||||||
|
});
|
||||||
const triggerVolume = createTriggerVolumeEntity({
|
const triggerVolume = createTriggerVolumeEntity({
|
||||||
id: "entity-trigger-main"
|
id: "entity-trigger-main"
|
||||||
});
|
});
|
||||||
@@ -120,6 +130,7 @@ describe("runtime control foundation", () => {
|
|||||||
[interactable.id]: interactable,
|
[interactable.id]: interactable,
|
||||||
[soundEmitter.id]: soundEmitter,
|
[soundEmitter.id]: soundEmitter,
|
||||||
[npc.id]: npc,
|
[npc.id]: npc,
|
||||||
|
[cameraRig.id]: cameraRig,
|
||||||
[triggerVolume.id]: triggerVolume
|
[triggerVolume.id]: triggerVolume
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -152,6 +163,14 @@ describe("runtime control foundation", () => {
|
|||||||
},
|
},
|
||||||
capabilities: ["actorPresence"]
|
capabilities: ["actorPresence"]
|
||||||
}),
|
}),
|
||||||
|
expect.objectContaining({
|
||||||
|
target: {
|
||||||
|
kind: "entity",
|
||||||
|
entityKind: "cameraRig",
|
||||||
|
entityId: cameraRig.id
|
||||||
|
},
|
||||||
|
capabilities: ["cameraRigOverride"]
|
||||||
|
}),
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
target: {
|
target: {
|
||||||
kind: "entity",
|
kind: "entity",
|
||||||
@@ -229,6 +248,11 @@ describe("runtime control foundation", () => {
|
|||||||
target: createProjectGlobalControlTargetRef(),
|
target: createProjectGlobalControlTargetRef(),
|
||||||
value: false
|
value: false
|
||||||
}),
|
}),
|
||||||
|
expect.objectContaining({
|
||||||
|
type: "cameraRigOverride",
|
||||||
|
target: createProjectGlobalControlTargetRef(),
|
||||||
|
entityId: null
|
||||||
|
}),
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
type: "ambientLightColor",
|
type: "ambientLightColor",
|
||||||
target: {
|
target: {
|
||||||
|
|||||||
Reference in New Issue
Block a user