Updated unit tests for runtime host configuration.
This commit is contained in:
@@ -3588,9 +3588,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-active",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 4 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 4 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4096,9 +4097,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-active",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 5 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4112,9 +4114,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-right",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 2, y: 0, z: 5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 2, y: 0, z: 5 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4128,9 +4131,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-above",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 2, z: 5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 2, z: 5 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4289,9 +4293,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-active",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 5 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4388,9 +4393,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-active",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
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 },
|
||||
name: "Active",
|
||||
defaultDialogueId: null,
|
||||
@@ -4399,9 +4405,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-right",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 2, y: 0, z: 5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
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 },
|
||||
name: "Right",
|
||||
defaultDialogueId: null,
|
||||
@@ -4498,9 +4505,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-far",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 16 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 16 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4514,9 +4522,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-near",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 6 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 6 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4626,9 +4635,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-border-a",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 15.5 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 15.5 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4642,9 +4652,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-border-b",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0.3, y: 0, z: 15.2 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0.3, y: 0, z: 15.2 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4788,9 +4799,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-far",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 16 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 16 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4859,9 +4871,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-close-edge",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 3, y: 0, z: 4 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 3, y: 0, z: 4 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -4875,9 +4888,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-center-farther",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 10 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 10 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -5032,9 +5046,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-visible",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 6 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 6 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -5048,9 +5063,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-occluded",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 8 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 8 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -5143,9 +5159,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-player-occluded",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 7 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 7 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -5159,9 +5176,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-player-visible",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0.8, y: 0, z: 8 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0.8, y: 0, z: 8 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -5255,9 +5273,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-close-above",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 1 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 1 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
@@ -5340,9 +5359,10 @@ describe("RuntimeHost", () => {
|
||||
{
|
||||
entityId: "npc-occluded-active",
|
||||
visible: true,
|
||||
position:targetable: true,
|
||||
position:targetAnchor: createNpcTargetAnchor(),
|
||||
position:position: { x: 0, y: 0, z: 6 },
|
||||
targetable: true,
|
||||
targetAnchor: createNpcTargetAnchor(),
|
||||
position:scale: { x: 1, y: 1, z: 1 },
|
||||
position: { x: 0, y: 0, z: 6 },
|
||||
collider: {
|
||||
mode: "capsule",
|
||||
radius: 0.35,
|
||||
|
||||
Reference in New Issue
Block a user