Remove PoolSettings.ExtraPrototypes option (#18678)

This commit is contained in:
Leon Friedrich
2023-08-05 16:16:48 +12:00
committed by GitHub
parent c2beaff3ac
commit d58786faf4
51 changed files with 463 additions and 399 deletions

View File

@@ -15,10 +15,11 @@ namespace Content.IntegrationTests.Tests
[TestOf(typeof(GravityGeneratorComponent))]
public sealed class GravityGridTest
{
[TestPrototypes]
private const string Prototypes = @"
- type: entity
name: GravityGeneratorDummy
id: GravityGeneratorDummy
name: GridGravityGeneratorDummy
id: GridGravityGeneratorDummy
components:
- type: GravityGenerator
chargeRate: 1000000000 # Set this really high so it discharges in a single tick.
@@ -31,8 +32,7 @@ namespace Content.IntegrationTests.Tests
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings
{
NoClient = true,
ExtraPrototypes = Prototypes
NoClient = true
});
var server = pairTracker.Pair.Server;
@@ -56,7 +56,7 @@ namespace Content.IntegrationTests.Tests
grid1Entity = grid1.Owner;
grid2Entity = grid2.Owner;
generator = entityMan.SpawnEntity("GravityGeneratorDummy", grid2.ToCoordinates());
generator = entityMan.SpawnEntity("GridGravityGeneratorDummy", grid2.ToCoordinates());
Assert.Multiple(() =>
{
Assert.That(entityMan.HasComponent<GravityGeneratorComponent>(generator));