This commit is contained in:
ShadowCommander
2023-06-18 11:33:19 -07:00
committed by GitHub
parent 8a943fb374
commit dd7032a860
85 changed files with 1432 additions and 711 deletions

View File

@@ -38,7 +38,7 @@ namespace Content.IntegrationTests.Tests.Interaction;
[FixtureLifeCycle(LifeCycle.InstancePerTestCase)]
public abstract partial class InteractionTest
{
protected virtual string PlayerPrototype => "MobInteractionTestObserver";
protected virtual string PlayerPrototype => "InteractionTestMob";
protected PairTracker PairTracker = default!;
protected TestMapData MapData = default!;
@@ -115,38 +115,27 @@ public abstract partial class InteractionTest
public float TickPeriod => (float)STiming.TickPeriod.TotalSeconds;
[SetUp]
public virtual async Task Setup()
{
const string TestPrototypes = @"
// Simple mob that has one hand and can perform misc interactions.
public const string TestPrototypes = @"
- type: entity
id: MobInteractionTestObserver
name: observer
noSpawn: true
save: false
description: Boo!
id: InteractionTestMob
components:
- type: Access
groups:
- AllAccess
- type: Body
prototype: Aghost
- type: DoAfter
- type: Ghost
canInteract: true
- type: Hands
- type: Mind
- type: MindContainer
- type: Stripping
- type: Tag
tags:
- CanPilot
- BypassInteractionRangeChecks
- type: Thieving
stripTimeReduction: 9999
stealthy: true
- type: UserInterface
";
[SetUp]
public virtual async Task Setup()
{
PairTracker = await PoolManager.GetServerClient(new PoolSettings{ExtraPrototypes = TestPrototypes});
// server dependencies