using Content.Shared.CombatMode; using Robust.Client.Graphics; using Robust.Client.Input; using Robust.Client.Player; using Robust.Shared.Console; using Robust.Shared.Map; namespace Content.Client.Weapons.Melee; public sealed class MeleeSpreadCommand : IConsoleCommand { public string Command => "showmeleespread"; public string Description => "Shows the current weapon's range and arc for debugging"; public string Help => $"{Command}"; public void Execute(IConsoleShell shell, string argStr, string[] args) { var collection = IoCManager.Instance; if (collection == null) return; var overlayManager = collection.Resolve(); if (overlayManager.RemoveOverlay()) { return; } var sysManager = collection.Resolve(); overlayManager.AddOverlay(new MeleeArcOverlay( collection.Resolve(), collection.Resolve(), collection.Resolve(), collection.Resolve(), sysManager.GetEntitySystem(), sysManager.GetEntitySystem(), sysManager.GetEntitySystem())); } }