Command resolve killing and LEC conversions batch 2 (#38367)
commit progress
This commit is contained in:
@@ -6,16 +6,17 @@ using Robust.Shared.Console;
|
||||
namespace Content.Server.Movement;
|
||||
|
||||
[AdminCommand(AdminFlags.Fun)]
|
||||
public sealed class LockEyesCommand : IConsoleCommand
|
||||
public sealed class LockEyesCommand : LocalizedEntityCommands
|
||||
{
|
||||
public string Command => $"lockeyes";
|
||||
public string Description => Loc.GetString("lockeyes-command-description");
|
||||
public string Help => Loc.GetString("lockeyes-command-help");
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
[Dependency] private readonly SharedMoverController _controller = default!;
|
||||
|
||||
public override string Command => $"lockeyes";
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
if (args.Length != 1)
|
||||
{
|
||||
shell.WriteError(Loc.GetString("shell-wrong-arguments-number"));
|
||||
shell.WriteError(Loc.GetString("shell-need-exactly-one-argument"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -25,7 +26,6 @@ public sealed class LockEyesCommand : IConsoleCommand
|
||||
return;
|
||||
}
|
||||
|
||||
var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<SharedMoverController>();
|
||||
system.CameraRotationLocked = value;
|
||||
_controller.CameraRotationLocked = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user