movercontroller namespace (#31749)

This commit is contained in:
Errant
2024-09-12 22:01:36 +02:00
committed by GitHub
parent 4b8510894f
commit 1c6b9aaae7
3 changed files with 1015 additions and 1018 deletions

View File

@@ -8,10 +8,10 @@ using Robust.Shared.Physics.Components;
using Robust.Shared.Player;
using Robust.Shared.Timing;
namespace Content.Client.Physics.Controllers
namespace Content.Client.Physics.Controllers;
public sealed class MoverController : SharedMoverController
{
public sealed class MoverController : SharedMoverController
{
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
@@ -135,5 +135,4 @@ namespace Content.Client.Physics.Controllers
{
return _timing is { IsFirstTimePredicted: true, InSimulation: true };
}
}
}

View File

@@ -12,10 +12,10 @@ using DroneConsoleComponent = Content.Server.Shuttles.DroneConsoleComponent;
using DependencyAttribute = Robust.Shared.IoC.DependencyAttribute;
using Robust.Shared.Map.Components;
namespace Content.Server.Physics.Controllers
namespace Content.Server.Physics.Controllers;
public sealed class MoverController : SharedMoverController
{
public sealed class MoverController : SharedMoverController
{
[Dependency] private readonly ThrusterSystem _thruster = default!;
[Dependency] private readonly SharedTransformSystem _xformSystem = default!;
@@ -567,5 +567,4 @@ namespace Content.Server.Physics.Controllers
|| HasComp<PreventPilotComponent>(shuttleUid);
}
}
}

View File

@@ -24,14 +24,14 @@ using Robust.Shared.Timing;
using Robust.Shared.Utility;
using PullableComponent = Content.Shared.Movement.Pulling.Components.PullableComponent;
namespace Content.Shared.Movement.Systems
namespace Content.Shared.Movement.Systems;
/// <summary>
/// Handles player and NPC mob movement.
/// NPCs are handled server-side only.
/// </summary>
public abstract partial class SharedMoverController : VirtualController
{
/// <summary>
/// Handles player and NPC mob movement.
/// NPCs are handled server-side only.
/// </summary>
public abstract partial class SharedMoverController : VirtualController
{
[Dependency] private readonly IConfigurationManager _configManager = default!;
[Dependency] protected readonly IGameTiming Timing = default!;
[Dependency] private readonly IMapManager _mapManager = default!;
@@ -511,5 +511,4 @@ namespace Content.Shared.Movement.Systems
sound = haveShoes ? tileDef.FootstepSounds : tileDef.BarestepSounds;
return sound != null;
}
}
}