Cleanup warnings: CS0414 (#5892)

* Clean up

* Use #pragma
This commit is contained in:
B_Kirill
2025-05-10 12:39:46 +10:00
committed by GitHub
parent 7d8e5a5841
commit 2a8b776ee9
6 changed files with 13 additions and 1 deletions

View File

@@ -24,7 +24,9 @@ namespace Robust.Shared.Physics.Systems
[Dependency] private readonly EntityLookupSystem _lookup = default!;
[Dependency] private readonly SharedBroadphaseSystem _broadphase = default!;
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
#pragma warning disable CS0414
[Dependency] private readonly IGameTiming _timing = default!;
#pragma warning restore CS0414
private EntityQuery<PhysicsMapComponent> _mapQuery;
private EntityQuery<PhysicsComponent> _physicsQuery;
private EntityQuery<FixturesComponent> _fixtureQuery;

View File

@@ -21,8 +21,10 @@ namespace Robust.Shared.Physics.Systems
*/
public partial class SharedPhysicsSystem
{
#pragma warning disable CS0414
[Dependency] private readonly SharedDebugRayDrawingSystem _sharedDebugRaySystem = default!;
[Dependency] private readonly INetManager _netMan = default!;
#pragma warning restore CS0414
/// <summary>
/// Checks to see if the specified collision rectangle collides with any of the physBodies under management.