Updated unit tests for runtime host configuration.

This commit is contained in:
2026-05-13 02:06:44 +02:00
parent c5a15e9d27
commit ccf7fc1b65

View File

@@ -3588,9 +3588,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-active", entityId: "npc-active",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 4 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 4 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4096,9 +4097,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-active", entityId: "npc-active",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 5 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4112,9 +4114,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-right", entityId: "npc-right",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 2, y: 0, z: 5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 2, y: 0, z: 5 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4128,9 +4131,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-above", entityId: "npc-above",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 2, z: 5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 2, z: 5 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4289,9 +4293,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-active", entityId: "npc-active",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 5 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4388,9 +4393,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-active", entityId: "npc-active",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 5 },
collider: { mode: "capsule", radius: 0.35, height: 1.8, eyeHeight: 1.6 }, collider: { mode: "capsule", radius: 0.35, height: 1.8, eyeHeight: 1.6 },
name: "Active", name: "Active",
defaultDialogueId: null, defaultDialogueId: null,
@@ -4399,9 +4405,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-right", entityId: "npc-right",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 2, y: 0, z: 5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 2, y: 0, z: 5 },
collider: { mode: "capsule", radius: 0.35, height: 1.8, eyeHeight: 1.6 }, collider: { mode: "capsule", radius: 0.35, height: 1.8, eyeHeight: 1.6 },
name: "Right", name: "Right",
defaultDialogueId: null, defaultDialogueId: null,
@@ -4498,9 +4505,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-far", entityId: "npc-far",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 16 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 16 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4514,9 +4522,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-near", entityId: "npc-near",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 6 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 6 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4626,9 +4635,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-border-a", entityId: "npc-border-a",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 15.5 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 15.5 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4642,9 +4652,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-border-b", entityId: "npc-border-b",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0.3, y: 0, z: 15.2 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0.3, y: 0, z: 15.2 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4788,9 +4799,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-far", entityId: "npc-far",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 16 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 16 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4859,9 +4871,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-close-edge", entityId: "npc-close-edge",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 3, y: 0, z: 4 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 3, y: 0, z: 4 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -4875,9 +4888,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-center-farther", entityId: "npc-center-farther",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 10 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 10 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -5032,9 +5046,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-visible", entityId: "npc-visible",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 6 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 6 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -5048,9 +5063,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-occluded", entityId: "npc-occluded",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 8 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 8 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -5143,9 +5159,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-player-occluded", entityId: "npc-player-occluded",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 7 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 7 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -5159,9 +5176,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-player-visible", entityId: "npc-player-visible",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0.8, y: 0, z: 8 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0.8, y: 0, z: 8 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -5255,9 +5273,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-close-above", entityId: "npc-close-above",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 1 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 1 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,
@@ -5340,9 +5359,10 @@ describe("RuntimeHost", () => {
{ {
entityId: "npc-occluded-active", entityId: "npc-occluded-active",
visible: true, visible: true,
position:targetable: true, targetable: true,
position:targetAnchor: createNpcTargetAnchor(), targetAnchor: createNpcTargetAnchor(),
position:position: { x: 0, y: 0, z: 6 }, position:scale: { x: 1, y: 1, z: 1 },
position: { x: 0, y: 0, z: 6 },
collider: { collider: {
mode: "capsule", mode: "capsule",
radius: 0.35, radius: 0.35,