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