cleanup: remove TargetingDoll-related code (#20866)

This commit is contained in:
iacore
2023-10-09 23:40:17 +00:00
committed by GitHub
parent 367c251e09
commit 21247fb642
9 changed files with 1 additions and 147 deletions

View File

@@ -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;
}
}

View File

@@ -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; }
}
}
}

View File

@@ -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)