move DeviceLinking events to shared (#36307)

move events
This commit is contained in:
slarticodefast
2025-04-05 14:20:14 +02:00
committed by GitHub
parent 890d4339d1
commit aa24066450
22 changed files with 22 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
using Content.Server.Atmos.Piping.Binary.Components; using Content.Server.Atmos.Piping.Binary.Components;
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Shared.DeviceLinking.Events;
namespace Content.Server.Atmos.Piping.Binary.EntitySystems; namespace Content.Server.Atmos.Piping.Binary.EntitySystems;

View File

@@ -2,14 +2,12 @@ using Content.Server.Atmos.EntitySystems;
using Content.Server.Atmos.Monitor.Systems; using Content.Server.Atmos.Monitor.Systems;
using Content.Server.Atmos.Piping.Components; using Content.Server.Atmos.Piping.Components;
using Content.Server.Atmos.Piping.Unary.Components; using Content.Server.Atmos.Piping.Unary.Components;
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using Content.Server.DeviceNetwork.Components; using Content.Server.DeviceNetwork.Components;
using Content.Server.DeviceNetwork.Systems; using Content.Server.DeviceNetwork.Systems;
using Content.Server.NodeContainer.EntitySystems; using Content.Server.NodeContainer.EntitySystems;
using Content.Server.NodeContainer.Nodes; using Content.Server.NodeContainer.Nodes;
using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems; using Content.Server.Power.EntitySystems;
using Content.Shared.Administration.Logs; using Content.Shared.Administration.Logs;
using Content.Shared.Atmos; using Content.Shared.Atmos;
@@ -20,6 +18,7 @@ using Content.Shared.Atmos.Piping.Unary.Components;
using Content.Shared.Atmos.Visuals; using Content.Shared.Atmos.Visuals;
using Content.Shared.Audio; using Content.Shared.Audio;
using Content.Shared.Database; using Content.Shared.Database;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.DeviceNetwork; using Content.Shared.DeviceNetwork;
using Content.Shared.DoAfter; using Content.Shared.DoAfter;
using Content.Shared.Examine; using Content.Shared.Examine;

View File

@@ -6,7 +6,7 @@ namespace Content.Server.DeviceLinking.Components.Overload;
/// <summary> /// <summary>
/// Plays a sound when a device link overloads. /// Plays a sound when a device link overloads.
/// An overload happens when a device link sink is invoked to many times per tick /// An overload happens when a device link sink is invoked to many times per tick
/// and it raises a <see cref="Content.Server.DeviceLinking.Events.DeviceLinkOverloadedEvent"/> /// and it raises a <see cref="Content.Shared.DeviceLinking.Events.DeviceLinkOverloadedEvent"/>
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
[Access(typeof(DeviceLinkOverloadSystem))] [Access(typeof(DeviceLinkOverloadSystem))]

View File

@@ -7,7 +7,7 @@ namespace Content.Server.DeviceLinking.Components.Overload;
/// <summary> /// <summary>
/// Spawns an entity when a device link overloads. /// Spawns an entity when a device link overloads.
/// An overload happens when a device link sink is invoked to many times per tick /// An overload happens when a device link sink is invoked to many times per tick
/// and it raises a <see cref="Content.Server.DeviceLinking.Events.DeviceLinkOverloadedEvent"/> /// and it raises a <see cref="Content.Shared.DeviceLinking.Events.DeviceLinkOverloadedEvent"/>
/// </summary> /// </summary>
[RegisterComponent] [RegisterComponent]
[Access(typeof(DeviceLinkOverloadSystem))] [Access(typeof(DeviceLinkOverloadSystem))]

View File

@@ -1,9 +1,7 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components.Overload;
using Content.Server.DeviceLinking.Components.Overload;
using Content.Server.DeviceLinking.Events;
using Robust.Server.Audio; using Robust.Server.Audio;
using Robust.Server.GameObjects;
using Robust.Shared.Audio; using Robust.Shared.Audio;
using Content.Shared.DeviceLinking.Events;
namespace Content.Server.DeviceLinking.Systems; namespace Content.Server.DeviceLinking.Systems;

View File

@@ -1,5 +1,4 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using Content.Server.DeviceNetwork.Components; using Content.Server.DeviceNetwork.Components;
using Content.Server.DeviceNetwork.Systems; using Content.Server.DeviceNetwork.Systems;

View File

@@ -1,11 +1,10 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using Content.Server.Doors.Systems; using Content.Server.Doors.Systems;
using Content.Shared.DeviceNetwork; using Content.Shared.DeviceLinking.Events;
using Content.Shared.Doors.Components; using Content.Shared.Doors.Components;
using Content.Shared.Doors; using Content.Shared.Doors;
using JetBrains.Annotations; using JetBrains.Annotations;
using SignalReceivedEvent = Content.Server.DeviceLinking.Events.SignalReceivedEvent;
namespace Content.Server.DeviceLinking.Systems namespace Content.Server.DeviceLinking.Systems
{ {

View File

@@ -1,6 +1,6 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using SignalReceivedEvent = Content.Server.DeviceLinking.Events.SignalReceivedEvent; using Content.Shared.DeviceLinking.Events;
namespace Content.Server.DeviceLinking.Systems; namespace Content.Server.DeviceLinking.Systems;

View File

@@ -1,9 +1,7 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceLinking.Events; using Content.Shared.DeviceLinking.Events;
using Content.Shared.Weapons.Ranged.Components; using Content.Shared.Weapons.Ranged.Components;
using Content.Shared.Weapons.Ranged.Systems; using Content.Shared.Weapons.Ranged.Systems;
using Robust.Shared.Map;
using System.Numerics;
namespace Content.Server.DeviceLinking.Systems; namespace Content.Server.DeviceLinking.Systems;

View File

@@ -1,13 +1,13 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using Content.Shared.DeviceLinking; using Content.Shared.DeviceLinking;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.Examine; using Content.Shared.Examine;
using Content.Shared.Interaction; using Content.Shared.Interaction;
using Content.Shared.Popups; using Content.Shared.Popups;
using Content.Shared.Timing; using Content.Shared.Timing;
using Content.Shared.Tools.Systems; using Content.Shared.Tools.Systems;
using Robust.Shared.Audio.Systems; using Robust.Shared.Audio.Systems;
using SignalReceivedEvent = Content.Server.DeviceLinking.Events.SignalReceivedEvent;
namespace Content.Server.DeviceLinking.Systems; namespace Content.Server.DeviceLinking.Systems;

View File

@@ -1,7 +1,7 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using Content.Shared.DeviceLinking; using Content.Shared.DeviceLinking;
using Content.Shared.DeviceLinking.Events;
namespace Content.Server.DeviceLinking.Systems; namespace Content.Server.DeviceLinking.Systems;

View File

@@ -1,7 +1,7 @@
using Content.Server.DeviceLinking.Components; using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceLinking.Events;
using Content.Shared.UserInterface; using Content.Shared.UserInterface;
using Content.Shared.Access.Systems; using Content.Shared.Access.Systems;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.MachineLinking; using Content.Shared.MachineLinking;
using Content.Shared.TextScreen; using Content.Shared.TextScreen;
using Robust.Server.GameObjects; using Robust.Server.GameObjects;

View File

@@ -1,7 +1,6 @@
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Server.Disposal.Tube;
using Content.Server.Disposal.Tube.Components; using Content.Server.Disposal.Tube.Components;
using Content.Shared.DeviceLinking.Events;
namespace Content.Server.Disposal.Tube.Systems; namespace Content.Server.Disposal.Tube.Systems;

View File

@@ -1,6 +1,6 @@
using Content.Server.DeviceLinking.Events;
using Content.Server.Power.Components; using Content.Server.Power.Components;
using Content.Server.Wires; using Content.Server.Wires;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.Doors.Components; using Content.Shared.Doors.Components;
using Content.Shared.Doors.Systems; using Content.Shared.Doors.Systems;
using Content.Shared.Interaction; using Content.Shared.Interaction;

View File

@@ -1,6 +1,6 @@
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Server.Explosion.Components; using Content.Server.Explosion.Components;
using Content.Shared.DeviceLinking.Events;
namespace Content.Server.Explosion.EntitySystems namespace Content.Server.Explosion.EntitySystems
{ {

View File

@@ -2,7 +2,6 @@ using Content.Server.Administration.Logs;
using Content.Server.Body.Systems; using Content.Server.Body.Systems;
using Content.Server.Construction; using Content.Server.Construction;
using Content.Server.Explosion.EntitySystems; using Content.Server.Explosion.EntitySystems;
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Server.Hands.Systems; using Content.Server.Hands.Systems;
using Content.Server.Kitchen.Components; using Content.Server.Kitchen.Components;
@@ -17,6 +16,7 @@ using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Chemistry.Reaction; using Content.Shared.Chemistry.Reaction;
using Content.Shared.Construction.EntitySystems; using Content.Shared.Construction.EntitySystems;
using Content.Shared.Database; using Content.Shared.Database;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.Destructible; using Content.Shared.Destructible;
using Content.Shared.FixedPoint; using Content.Shared.FixedPoint;
using Content.Shared.Interaction; using Content.Shared.Interaction;

View File

@@ -1,5 +1,3 @@
using Content.Server.Administration.Logs;
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Server.DeviceNetwork; using Content.Server.DeviceNetwork;
using Content.Server.DeviceNetwork.Systems; using Content.Server.DeviceNetwork.Systems;
@@ -9,18 +7,14 @@ using Content.Server.Light.Components;
using Content.Server.Power.Components; using Content.Server.Power.Components;
using Content.Shared.Audio; using Content.Shared.Audio;
using Content.Shared.Damage; using Content.Shared.Damage;
using Content.Shared.Database; using Content.Shared.DeviceLinking.Events;
using Content.Shared.DoAfter; using Content.Shared.DoAfter;
using Content.Shared.Hands.EntitySystems; using Content.Shared.Hands.EntitySystems;
using Content.Shared.Interaction; using Content.Shared.Interaction;
using Content.Shared.Inventory;
using Content.Shared.Light; using Content.Shared.Light;
using Content.Shared.Light.Components; using Content.Shared.Light.Components;
using Content.Shared.Popups;
using Robust.Server.GameObjects; using Robust.Server.GameObjects;
using Robust.Shared.Audio;
using Robust.Shared.Containers; using Robust.Shared.Containers;
using Robust.Shared.Player;
using Robust.Shared.Timing; using Robust.Shared.Timing;
using Robust.Shared.Audio.Systems; using Robust.Shared.Audio.Systems;
using Content.Shared.Damage.Systems; using Content.Shared.Damage.Systems;

View File

@@ -1,7 +1,7 @@
using Content.Server.DeviceLinking.Events;
using Content.Server.DeviceLinking.Systems; using Content.Server.DeviceLinking.Systems;
using Content.Server.Materials; using Content.Server.Materials;
using Content.Shared.Conveyor; using Content.Shared.Conveyor;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.Destructible; using Content.Shared.Destructible;
using Content.Shared.Maps; using Content.Shared.Maps;
using Content.Shared.Physics; using Content.Shared.Physics;

View File

@@ -1,5 +1,4 @@
using System.ComponentModel; using Content.Shared.DeviceLinking.Events;
using Content.Server.DeviceLinking.Events;
using Content.Shared.Power.Generator; using Content.Shared.Power.Generator;
namespace Content.Server.Power.Generator; namespace Content.Server.Power.Generator;

View File

@@ -1,12 +1,12 @@
using System.Numerics; using System.Numerics;
using System.Threading; using System.Threading;
using Content.Server.Administration.Logs; using Content.Server.Administration.Logs;
using Content.Server.DeviceLinking.Events;
using Content.Server.Power.Components; using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems; using Content.Server.Power.EntitySystems;
using Content.Server.Projectiles; using Content.Server.Projectiles;
using Content.Server.Weapons.Ranged.Systems; using Content.Server.Weapons.Ranged.Systems;
using Content.Shared.Database; using Content.Shared.Database;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.Examine; using Content.Shared.Examine;
using Content.Shared.Interaction; using Content.Shared.Interaction;
using Content.Shared.Lock; using Content.Shared.Lock;

View File

@@ -1,4 +1,4 @@
namespace Content.Server.DeviceLinking.Events; namespace Content.Shared.DeviceLinking.Events;
[ByRefEvent] [ByRefEvent]
public readonly record struct DeviceLinkOverloadedEvent; public readonly record struct DeviceLinkOverloadedEvent;

View File

@@ -1,7 +1,6 @@
using Content.Server.DeviceNetwork;
using Content.Shared.DeviceNetwork; using Content.Shared.DeviceNetwork;
namespace Content.Server.DeviceLinking.Events; namespace Content.Shared.DeviceLinking.Events;
[ByRefEvent] [ByRefEvent]
public readonly record struct SignalReceivedEvent(string Port, EntityUid? Trigger = null, NetworkPayload? Data = null); public readonly record struct SignalReceivedEvent(string Port, EntityUid? Trigger = null, NetworkPayload? Data = null);