2023-04-15 07:41:25 +12:00
|
|
|
using Content.IntegrationTests.Tests.Interaction;
|
|
|
|
|
|
|
|
|
|
namespace Content.IntegrationTests.Tests.Construction.Interaction;
|
|
|
|
|
|
|
|
|
|
public sealed class WallConstruction : InteractionTest
|
|
|
|
|
{
|
|
|
|
|
public const string Girder = "Girder";
|
|
|
|
|
public const string WallSolid = "WallSolid";
|
2023-05-23 18:43:53 +03:00
|
|
|
public const string Wall = "WallSolid";
|
2023-04-15 07:41:25 +12:00
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public async Task ConstructWall()
|
|
|
|
|
{
|
|
|
|
|
await StartConstruction(Wall);
|
|
|
|
|
await Interact(Steel, 2);
|
2023-07-05 21:54:25 -07:00
|
|
|
Assert.That(Hands.ActiveHandEntity, Is.Null);
|
2023-09-11 09:42:41 +10:00
|
|
|
ClientAssertPrototype(Girder, ClientTarget);
|
|
|
|
|
Target = CTestSystem.Ghosts[ClientTarget!.Value.GetHashCode()];
|
2023-04-15 07:41:25 +12:00
|
|
|
await Interact(Steel, 2);
|
2023-07-05 21:54:25 -07:00
|
|
|
Assert.That(Hands.ActiveHandEntity, Is.Null);
|
2023-04-15 07:41:25 +12:00
|
|
|
AssertPrototype(WallSolid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public async Task DeconstructWall()
|
|
|
|
|
{
|
|
|
|
|
await StartDeconstruction(WallSolid);
|
|
|
|
|
await Interact(Weld);
|
|
|
|
|
AssertPrototype(Girder);
|
|
|
|
|
await Interact(Wrench, Screw);
|
|
|
|
|
AssertDeleted();
|
|
|
|
|
await AssertEntityLookup((Steel, 4));
|
|
|
|
|
}
|
|
|
|
|
}
|