Remove PoolSettings.ExtraPrototypes option (#18678)
This commit is contained in:
@@ -9,18 +9,19 @@ namespace Content.IntegrationTests.Tests.Gravity
|
||||
[TestOf(typeof(GravityGeneratorComponent))]
|
||||
public sealed class WeightlessStatusTests
|
||||
{
|
||||
[TestPrototypes]
|
||||
private const string Prototypes = @"
|
||||
- type: entity
|
||||
name: HumanDummy
|
||||
id: HumanDummy
|
||||
name: HumanWeightlessDummy
|
||||
id: HumanWeightlessDummy
|
||||
components:
|
||||
- type: Alerts
|
||||
- type: Physics
|
||||
bodyType: Dynamic
|
||||
|
||||
- type: entity
|
||||
name: GravityGeneratorDummy
|
||||
id: GravityGeneratorDummy
|
||||
name: WeightlessGravityGeneratorDummy
|
||||
id: WeightlessGravityGeneratorDummy
|
||||
components:
|
||||
- type: GravityGenerator
|
||||
chargeRate: 1000000000 # Set this really high so it discharges in a single tick.
|
||||
@@ -34,8 +35,7 @@ namespace Content.IntegrationTests.Tests.Gravity
|
||||
{
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings
|
||||
{
|
||||
NoClient = true,
|
||||
ExtraPrototypes = Prototypes
|
||||
NoClient = true
|
||||
});
|
||||
var server = pairTracker.Pair.Server;
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Content.IntegrationTests.Tests.Gravity
|
||||
|
||||
await server.WaitAssertion(() =>
|
||||
{
|
||||
human = entityManager.SpawnEntity("HumanDummy", testMap.GridCoords);
|
||||
human = entityManager.SpawnEntity("HumanWeightlessDummy", testMap.GridCoords);
|
||||
|
||||
Assert.That(entityManager.TryGetComponent(human, out AlertsComponent alerts));
|
||||
});
|
||||
@@ -61,7 +61,7 @@ namespace Content.IntegrationTests.Tests.Gravity
|
||||
// No gravity without a gravity generator
|
||||
Assert.That(alertsSystem.IsShowingAlert(human, AlertType.Weightless));
|
||||
|
||||
generatorUid = entityManager.SpawnEntity("GravityGeneratorDummy", entityManager.GetComponent<TransformComponent>(human).Coordinates);
|
||||
generatorUid = entityManager.SpawnEntity("WeightlessGravityGeneratorDummy", entityManager.GetComponent<TransformComponent>(human).Coordinates);
|
||||
});
|
||||
|
||||
// Let WeightlessSystem and GravitySystem tick
|
||||
|
||||
Reference in New Issue
Block a user