Fix interaction test not adding hands to entity
This commit is contained in:
@@ -68,7 +68,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click
|
|||||||
var coordinates = new MapCoordinates(Vector2.Zero, mapId);
|
var coordinates = new MapCoordinates(Vector2.Zero, mapId);
|
||||||
|
|
||||||
origin = entityManager.SpawnEntity(null, coordinates);
|
origin = entityManager.SpawnEntity(null, coordinates);
|
||||||
origin.EnsureComponent<HandsComponent>();
|
origin.EnsureComponent<HandsComponent>().AddHand("hand");
|
||||||
other = entityManager.SpawnEntity(null, coordinates);
|
other = entityManager.SpawnEntity(null, coordinates);
|
||||||
containerEntity = entityManager.SpawnEntity(null, coordinates);
|
containerEntity = entityManager.SpawnEntity(null, coordinates);
|
||||||
container = ContainerHelpers.EnsureContainer<Container>(containerEntity, "InteractionTestContainer");
|
container = ContainerHelpers.EnsureContainer<Container>(containerEntity, "InteractionTestContainer");
|
||||||
@@ -126,7 +126,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click
|
|||||||
Assert.That(interactUsing, Is.False);
|
Assert.That(interactUsing, Is.False);
|
||||||
|
|
||||||
interactionSystem.UserInteraction(origin, containerEntity.Transform.Coordinates, containerEntity.Uid);
|
interactionSystem.UserInteraction(origin, containerEntity.Transform.Coordinates, containerEntity.Uid);
|
||||||
Assert.That(interactUsing);
|
Assert.That(interactUsing, Is.True);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user