Command resolve killing and LEC conversions batch 2 (#38367)
commit progress
This commit is contained in:
@@ -89,19 +89,18 @@ public partial class RadiationSystem
|
||||
/// Toggle visibility of radiation rays coming from rad sources.
|
||||
/// </summary>
|
||||
[AdminCommand(AdminFlags.Admin)]
|
||||
public sealed class RadiationViewCommand : IConsoleCommand
|
||||
public sealed class RadiationViewCommand : LocalizedEntityCommands
|
||||
{
|
||||
public string Command => "showradiation";
|
||||
public string Description => Loc.GetString("radiation-command-description");
|
||||
public string Help => Loc.GetString("radiation-command-help");
|
||||
[Dependency] private readonly RadiationSystem _radiation = default!;
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
public override string Command => "showradiation";
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var session = shell.Player;
|
||||
if (session == null)
|
||||
return;
|
||||
|
||||
var entityManager = IoCManager.Resolve<IEntityManager>();
|
||||
entityManager.System<RadiationSystem>().ToggleDebugView(session);
|
||||
_radiation.ToggleDebugView(session);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user