cleanup: remove TargetingDoll-related code (#20866)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Content.Shared.MouseRotator;
|
||||
using Content.Shared.Movement.Components;
|
||||
using Content.Shared.Targeting;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
@@ -49,8 +48,5 @@ namespace Content.Shared.CombatMode
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool ToggleMouseRotator = true;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("activeZone"), AutoNetworkedField]
|
||||
public TargetingZone ActiveZone;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
using Content.Shared.Targeting;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.CombatMode
|
||||
{
|
||||
public static class CombatModeSystemMessages
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class SetTargetZoneMessage : EntityEventArgs
|
||||
{
|
||||
public SetTargetZoneMessage(TargetingZone targetZone)
|
||||
{
|
||||
TargetZone = targetZone;
|
||||
}
|
||||
|
||||
public TargetingZone TargetZone { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,6 @@ using Content.Shared.Actions;
|
||||
using Content.Shared.MouseRotator;
|
||||
using Content.Shared.Movement.Components;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Targeting;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
@@ -89,15 +88,6 @@ public abstract class SharedCombatModeSystem : EntitySystem
|
||||
SetMouseRotatorComponents(entity, value);
|
||||
}
|
||||
|
||||
public virtual void SetActiveZone(EntityUid entity, TargetingZone zone,
|
||||
CombatModeComponent? component = null)
|
||||
{
|
||||
if (!Resolve(entity, ref component))
|
||||
return;
|
||||
|
||||
component.ActiveZone = zone;
|
||||
}
|
||||
|
||||
private void SetMouseRotatorComponents(EntityUid uid, bool value)
|
||||
{
|
||||
if (value)
|
||||
|
||||
Reference in New Issue
Block a user