]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
move DeviceLinking events to shared (#36307)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Sat, 5 Apr 2025 12:20:14 +0000 (14:20 +0200)
committerGitHub <noreply@github.com>
Sat, 5 Apr 2025 12:20:14 +0000 (14:20 +0200)
move events

22 files changed:
Content.Server/Atmos/Piping/Binary/EntitySystems/SignalControlledValveSystem.cs
Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs
Content.Server/DeviceLinking/Components/Overload/SoundOnOverloadComponent.cs
Content.Server/DeviceLinking/Components/Overload/SpawnOnOverloadComponent.cs
Content.Server/DeviceLinking/Systems/DeviceLinkOverloadSystem.cs
Content.Server/DeviceLinking/Systems/DeviceLinkSystem.cs
Content.Server/DeviceLinking/Systems/DoorSignalControlSystem.cs
Content.Server/DeviceLinking/Systems/EdgeDetectorSystem.cs
Content.Server/DeviceLinking/Systems/GunSignalControlSystem.cs
Content.Server/DeviceLinking/Systems/LogicGateSystem.cs
Content.Server/DeviceLinking/Systems/MemoryCellSystem.cs
Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs
Content.Server/Disposal/Tube/Systems/DisposalSignalRouterSystem.cs
Content.Server/Doors/Systems/AirlockSystem.cs
Content.Server/Explosion/EntitySystems/TriggerSystem.Signal.cs
Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs
Content.Server/Light/EntitySystems/PoweredLightSystem.cs
Content.Server/Physics/Controllers/ConveyorController.cs
Content.Server/Power/Generator/GeneratorSignalControlSystem.cs
Content.Server/Singularity/EntitySystems/EmitterSystem.cs
Content.Shared/DeviceLinking/Events/DeviceLinkOverloadedEvent.cs [moved from Content.Server/DeviceLinking/Events/DeviceLinkOverloadedEvent.cs with 58% similarity]
Content.Shared/DeviceLinking/Events/SignalReceivedEvent.cs [moved from Content.Server/DeviceLinking/Events/SignalReceivedEvent.cs with 67% similarity]

index a1148437503b69dd5b3f54a723fe025956b3861c..f94785ac17f1e6a149bfa9b7679d748ede93450a 100644 (file)
@@ -1,6 +1,6 @@
 using Content.Server.Atmos.Piping.Binary.Components;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
+using Content.Shared.DeviceLinking.Events;
 
 namespace Content.Server.Atmos.Piping.Binary.EntitySystems;
 
index 93f7dcf11106612f839cb20a4a591076c800c1fd..e9f27a1958e966ef692b1fa1474ee89a0d2f1199 100644 (file)
@@ -2,14 +2,12 @@ using Content.Server.Atmos.EntitySystems;
 using Content.Server.Atmos.Monitor.Systems;
 using Content.Server.Atmos.Piping.Components;
 using Content.Server.Atmos.Piping.Unary.Components;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
 using Content.Server.DeviceNetwork;
 using Content.Server.DeviceNetwork.Components;
 using Content.Server.DeviceNetwork.Systems;
 using Content.Server.NodeContainer.EntitySystems;
 using Content.Server.NodeContainer.Nodes;
-using Content.Server.Power.Components;
 using Content.Server.Power.EntitySystems;
 using Content.Shared.Administration.Logs;
 using Content.Shared.Atmos;
@@ -20,6 +18,7 @@ using Content.Shared.Atmos.Piping.Unary.Components;
 using Content.Shared.Atmos.Visuals;
 using Content.Shared.Audio;
 using Content.Shared.Database;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.DeviceNetwork;
 using Content.Shared.DoAfter;
 using Content.Shared.Examine;
index b70ce950a117d50a514b06d0f490b06dbe204857..2474f2500db84d62ee9f893ddebb068b42fda6b0 100644 (file)
@@ -6,7 +6,7 @@ namespace Content.Server.DeviceLinking.Components.Overload;
 /// <summary>
 /// Plays a sound when a device link overloads.
 /// 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>
 [RegisterComponent]
 [Access(typeof(DeviceLinkOverloadSystem))]
index 2ee24cf3d109b9040f5e17f1cbc5b46b76479f66..16df5c49f9d6e27de0cb29d1bab1ea8bc078d6b4 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Server.DeviceLinking.Components.Overload;
 /// <summary>
 /// Spawns an entity when a device link overloads.
 /// 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>
 [RegisterComponent]
 [Access(typeof(DeviceLinkOverloadSystem))]
index 8ca6fd75c2ee1a88542c94034ae7c5a2b4b41894..2ecbea195c4db64d5cfb8230d772b9b57b2d2b68 100644 (file)
@@ -1,9 +1,7 @@
-using Content.Server.DeviceLinking.Components;
-using Content.Server.DeviceLinking.Components.Overload;
-using Content.Server.DeviceLinking.Events;
+using Content.Server.DeviceLinking.Components.Overload;
 using Robust.Server.Audio;
-using Robust.Server.GameObjects;
 using Robust.Shared.Audio;
+using Content.Shared.DeviceLinking.Events;
 
 namespace Content.Server.DeviceLinking.Systems;
 
index f708237480f12cd7c5d04dc6195bf507d17341fd..b895ec190e4b56257f28904bde0f8a7a86085d1e 100644 (file)
@@ -1,5 +1,4 @@
 using Content.Server.DeviceLinking.Components;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceNetwork;
 using Content.Server.DeviceNetwork.Components;
 using Content.Server.DeviceNetwork.Systems;
index fab9a306ae71852bfc99a9c7cca1647cc4b3d7ff..145e2a7dfcdcab70fd35b5cc9970f90068dbc1d8 100644 (file)
@@ -1,11 +1,10 @@
 using Content.Server.DeviceLinking.Components;
 using Content.Server.DeviceNetwork;
 using Content.Server.Doors.Systems;
-using Content.Shared.DeviceNetwork;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Doors.Components;
 using Content.Shared.Doors;
 using JetBrains.Annotations;
-using SignalReceivedEvent = Content.Server.DeviceLinking.Events.SignalReceivedEvent;
 
 namespace Content.Server.DeviceLinking.Systems
 {
index 10c8a1700b52c26d0384ca6a9480814dab3c372b..2bf71e4e946e32f44a23fbf9109586287f91674c 100644 (file)
@@ -1,6 +1,6 @@
 using Content.Server.DeviceLinking.Components;
 using Content.Server.DeviceNetwork;
-using SignalReceivedEvent = Content.Server.DeviceLinking.Events.SignalReceivedEvent;
+using Content.Shared.DeviceLinking.Events;
 
 namespace Content.Server.DeviceLinking.Systems;
 
index 538a191ab946a2ed5e5241c1314cbbef5790febe..1f9d338c58e708ba1cc59bac84d33a51cef54e9a 100644 (file)
@@ -1,9 +1,7 @@
 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.Systems;
-using Robust.Shared.Map;
-using System.Numerics;
 
 namespace Content.Server.DeviceLinking.Systems;
 
index e6a5b37c273c1ee654844e83f561e8e539760a8e..eaab3c986fea0a459a1f1a5a3fcb69d8b07be4fb 100644 (file)
@@ -1,13 +1,13 @@
 using Content.Server.DeviceLinking.Components;
 using Content.Server.DeviceNetwork;
 using Content.Shared.DeviceLinking;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Examine;
 using Content.Shared.Interaction;
 using Content.Shared.Popups;
 using Content.Shared.Timing;
 using Content.Shared.Tools.Systems;
 using Robust.Shared.Audio.Systems;
-using SignalReceivedEvent = Content.Server.DeviceLinking.Events.SignalReceivedEvent;
 
 namespace Content.Server.DeviceLinking.Systems;
 
index 56a6f45c3b2563723db2db701b7a3df74c9784e9..dbae7790f93437b5687fb1dac7623107f29f6532 100644 (file)
@@ -1,7 +1,7 @@
 using Content.Server.DeviceLinking.Components;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceNetwork;
 using Content.Shared.DeviceLinking;
+using Content.Shared.DeviceLinking.Events;
 
 namespace Content.Server.DeviceLinking.Systems;
 
index b4ae1eb57a311bab7d980d79dc4e6870f77ee7b4..a02e17506579190c73424325a98399fbb6cc06eb 100644 (file)
@@ -1,7 +1,7 @@
 using Content.Server.DeviceLinking.Components;
-using Content.Server.DeviceLinking.Events;
 using Content.Shared.UserInterface;
 using Content.Shared.Access.Systems;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.MachineLinking;
 using Content.Shared.TextScreen;
 using Robust.Server.GameObjects;
index 3a9fdbbf8d47dcedb6bf2d9b9eadf23899b49b56..f1fdedb522674f27dc63e778ded444241798ffbe 100644 (file)
@@ -1,7 +1,6 @@
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
-using Content.Server.Disposal.Tube;
 using Content.Server.Disposal.Tube.Components;
+using Content.Shared.DeviceLinking.Events;
 
 namespace Content.Server.Disposal.Tube.Systems;
 
index b731626ff73e5640393c6329c866120b011fa5d6..7dfdebf3678e51b7860b82dcc7b508bec262b6cc 100644 (file)
@@ -1,6 +1,6 @@
-using Content.Server.DeviceLinking.Events;
 using Content.Server.Power.Components;
 using Content.Server.Wires;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Doors.Components;
 using Content.Shared.Doors.Systems;
 using Content.Shared.Interaction;
index ce4d201f28964d92456f368946550bcda73ae067..99e8c97d53a7478cbd6e8ad2069e286cd3fbaba6 100644 (file)
@@ -1,6 +1,6 @@
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
 using Content.Server.Explosion.Components;
+using Content.Shared.DeviceLinking.Events;
 
 namespace Content.Server.Explosion.EntitySystems
 {
index 4f71cc4721b0487d025e9cadf52442a89a973c34..f0bd0c2127c098641fd725deef017e6c7c616c07 100644 (file)
@@ -2,7 +2,6 @@ using Content.Server.Administration.Logs;
 using Content.Server.Body.Systems;
 using Content.Server.Construction;
 using Content.Server.Explosion.EntitySystems;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
 using Content.Server.Hands.Systems;
 using Content.Server.Kitchen.Components;
@@ -17,6 +16,7 @@ using Content.Shared.Chemistry.EntitySystems;
 using Content.Shared.Chemistry.Reaction;
 using Content.Shared.Construction.EntitySystems;
 using Content.Shared.Database;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Destructible;
 using Content.Shared.FixedPoint;
 using Content.Shared.Interaction;
index bc4b80be97a49c12e2714266319c08d825e2aba7..53c60296d520e644d26744438bd0bcf0b6f15a0d 100644 (file)
@@ -1,5 +1,3 @@
-using Content.Server.Administration.Logs;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
 using Content.Server.DeviceNetwork;
 using Content.Server.DeviceNetwork.Systems;
@@ -9,18 +7,14 @@ using Content.Server.Light.Components;
 using Content.Server.Power.Components;
 using Content.Shared.Audio;
 using Content.Shared.Damage;
-using Content.Shared.Database;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.DoAfter;
 using Content.Shared.Hands.EntitySystems;
 using Content.Shared.Interaction;
-using Content.Shared.Inventory;
 using Content.Shared.Light;
 using Content.Shared.Light.Components;
-using Content.Shared.Popups;
 using Robust.Server.GameObjects;
-using Robust.Shared.Audio;
 using Robust.Shared.Containers;
-using Robust.Shared.Player;
 using Robust.Shared.Timing;
 using Robust.Shared.Audio.Systems;
 using Content.Shared.Damage.Systems;
index 494bc8c6f028d8bf3ebd552fda4bd095202d2bb5..fa278278e27dcd2a472c1988137730ad34d1f087 100644 (file)
@@ -1,7 +1,7 @@
-using Content.Server.DeviceLinking.Events;
 using Content.Server.DeviceLinking.Systems;
 using Content.Server.Materials;
 using Content.Shared.Conveyor;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Destructible;
 using Content.Shared.Maps;
 using Content.Shared.Physics;
index 4a42bcfffb90c0ab0a9589fe8d31395f6a3eb4ed..dfef20c4eb11efe30e3f81bc725b4c1265f5bda4 100644 (file)
@@ -1,5 +1,4 @@
-using System.ComponentModel;
-using Content.Server.DeviceLinking.Events;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Power.Generator;
 
 namespace Content.Server.Power.Generator;
index d3c5f8bb9cff225415d4e9945166c335bb99fe38..b1efd8624cb22e5f0e9c5945ed54e24e5afc7538 100644 (file)
@@ -1,12 +1,12 @@
 using System.Numerics;
 using System.Threading;
 using Content.Server.Administration.Logs;
-using Content.Server.DeviceLinking.Events;
 using Content.Server.Power.Components;
 using Content.Server.Power.EntitySystems;
 using Content.Server.Projectiles;
 using Content.Server.Weapons.Ranged.Systems;
 using Content.Shared.Database;
+using Content.Shared.DeviceLinking.Events;
 using Content.Shared.Examine;
 using Content.Shared.Interaction;
 using Content.Shared.Lock;
similarity index 58%
rename from Content.Server/DeviceLinking/Events/DeviceLinkOverloadedEvent.cs
rename to Content.Shared/DeviceLinking/Events/DeviceLinkOverloadedEvent.cs
index ef35603e885c677a5c1a68e635ab147d005527a6..0a1e4e046addac127cf14d20c77589cad9746c72 100644 (file)
@@ -1,4 +1,4 @@
-namespace Content.Server.DeviceLinking.Events;
+namespace Content.Shared.DeviceLinking.Events;
 
 [ByRefEvent]
 public readonly record struct DeviceLinkOverloadedEvent;
similarity index 67%
rename from Content.Server/DeviceLinking/Events/SignalReceivedEvent.cs
rename to Content.Shared/DeviceLinking/Events/SignalReceivedEvent.cs
index c8c611103d9ff46aeaabef0b65d1e83919fe3f61..335a95cecc811432d7943138584114e14712d181 100644 (file)
@@ -1,7 +1,6 @@
-using Content.Server.DeviceNetwork;
 using Content.Shared.DeviceNetwork;
 
-namespace Content.Server.DeviceLinking.Events;
+namespace Content.Shared.DeviceLinking.Events;
 
 [ByRefEvent]
 public readonly record struct SignalReceivedEvent(string Port, EntityUid? Trigger = null, NetworkPayload? Data = null);