Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MilenVolf committed Nov 13, 2024
1 parent 1d962ac commit 3da4094
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task DeletionNetworkingTest()
var cPlayerMan = client.ResolveDependency<ISharedPlayerManager>();
var sPlayerMan = server.ResolveDependency<ISharedPlayerManager>();
var xformSys = sEntMan.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
var mapSys = sEntMan.System<SharedMapSystem>();
var mapSys = sEntMan.EntitySysManager.GetEntitySystem<SharedMapSystem>();

Assert.DoesNotThrow(() => client.SetConnectTarget(server));
client.Post(() => netMan.ClientConnect(null!, 0, null!));
Expand Down
2 changes: 1 addition & 1 deletion Robust.UnitTesting/Shared/Map/GridContraction_Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public async Task TestGridDeletes()

var entManager = server.ResolveDependency<IEntityManager>();
var mapManager = server.ResolveDependency<IMapManager>();
var mapSystem = entManager.System<SharedMapSystem>();
var mapSystem = entManager.EntitySysManager.GetEntitySystem<SharedMapSystem>();

await server.WaitAssertion(() =>
{
Expand Down
2 changes: 1 addition & 1 deletion Robust.UnitTesting/Shared/Map/GridFixtures_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task TestGridFixtures()
var entManager = server.ResolveDependency<IEntityManager>();
var mapManager = server.ResolveDependency<IMapManager>();
var physSystem = server.ResolveDependency<IEntitySystemManager>().GetEntitySystem<SharedPhysicsSystem>();
var mapSystem = entManager.System<SharedMapSystem>();
var mapSystem = entManager.EntitySysManager.GetEntitySystem<SharedMapSystem>();

await server.WaitAssertion(() =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async Task TestBroadphaseNetworking()
var sPlayerMan = server.ResolveDependency<ISharedPlayerManager>();
var fixturesSystem = sEntMan.EntitySysManager.GetEntitySystem<FixtureSystem>();
var physicsSystem = sEntMan.EntitySysManager.GetEntitySystem<SharedPhysicsSystem>();
var mapSystem = sEntMan.System<SharedMapSystem>();
var mapSystem = sEntMan.EntitySysManager.GetEntitySystem<SharedMapSystem>();

Assert.DoesNotThrow(() => client.SetConnectTarget(server));
client.Post(() => netMan.ClientConnect(null!, 0, null!));
Expand Down
5 changes: 3 additions & 2 deletions Robust.UnitTesting/Shared/Physics/GridMovement_Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public async Task TestFindGridContacts()
var mapManager = server.ResolveDependency<IMapManager>();
var entManager = server.ResolveDependency<IEntityManager>();
var physSystem = systems.GetEntitySystem<SharedPhysicsSystem>();
var mapSystem = entManager.System<SharedMapSystem>();
var transformSystem = entManager.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
var mapSystem = entManager.EntitySysManager.GetEntitySystem<SharedMapSystem>();

await server.WaitAssertion(() =>
{
Expand Down Expand Up @@ -68,7 +69,7 @@ await server.WaitAssertion(() =>
Assert.That(onGridBody.ContactCount, Is.EqualTo(0));
// Alright now move the grid on top of the off grid body, run physics for a frame and see if they contact
entManager.GetComponent<TransformComponent>(grid.Owner)._localPosition = new Vector2(10f, 10f);
transformSystem.SetLocalPosition(grid.Owner, new Vector2(10f, 10f));
physSystem.Update(0.001f);
Assert.That(onGridBody.ContactCount, Is.EqualTo(1));
Expand Down
2 changes: 1 addition & 1 deletion Robust.UnitTesting/Shared/Physics/RecursiveUpdateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void RecursiveMoveTest()
var sim = RobustServerSimulation.NewSimulation().InitializeInstance();
var entManager = sim.Resolve<IEntityManager>();
var mapManager = sim.Resolve<IMapManager>();
var mapSystem = entManager.System<SharedMapSystem>();
var mapSystem = entManager.EntitySysManager.GetEntitySystem<SharedMapSystem>();
var transforms = entManager.EntitySysManager.GetEntitySystem<SharedTransformSystem>();
var lookup = entManager.EntitySysManager.GetEntitySystem<EntityLookupSystem>();

Expand Down

0 comments on commit 3da4094

Please sign in to comment.