]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Moving Zombie Components to Shared (#39791)
authorProle <172158352+Prole0@users.noreply.github.com>
Wed, 20 Aug 2025 23:35:38 +0000 (16:35 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 23:35:38 +0000 (01:35 +0200)
* Moving Comps to Shared

* Requested Changes

Content.Server/Zombies/ZombifyOnDeathComponent.cs [deleted file]
Content.Shared/Zombies/ZombieImmuneComponent.cs [moved from Content.Server/Zombies/ZombieImmuneComponent.cs with 60% similarity]
Content.Shared/Zombies/ZombifyOnDeathComponent.cs [new file with mode: 0644]

diff --git a/Content.Server/Zombies/ZombifyOnDeathComponent.cs b/Content.Server/Zombies/ZombifyOnDeathComponent.cs
deleted file mode 100644 (file)
index dff17c4..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace Content.Server.Zombies
-{
-    [RegisterComponent]
-    public sealed partial class ZombifyOnDeathComponent : Component
-    {
-        //this is not the component you are looking for
-    }
-}
similarity index 60%
rename from Content.Server/Zombies/ZombieImmuneComponent.cs
rename to Content.Shared/Zombies/ZombieImmuneComponent.cs
index 76a8ab9e675f46534239a4a1166c93d360dffbe0..18ad228363827fb3cb0cbc7a80a6195fd54be483 100644 (file)
@@ -1,9 +1,11 @@
-namespace Content.Server.Zombies;
+using Robust.Shared.GameStates;
+
+namespace Content.Shared.Zombies;
 
 /// <summary>
 /// Entities with this component cannot be zombified.
 /// </summary>
-[RegisterComponent]
+[RegisterComponent, NetworkedComponent]
 public sealed partial class ZombieImmuneComponent : Component
 {
     //still no
diff --git a/Content.Shared/Zombies/ZombifyOnDeathComponent.cs b/Content.Shared/Zombies/ZombifyOnDeathComponent.cs
new file mode 100644 (file)
index 0000000..138ea6e
--- /dev/null
@@ -0,0 +1,12 @@
+using Robust.Shared.GameStates;
+
+namespace Content.Shared.Zombies;
+
+/// <summary>
+/// Entities with this component zombify on death.
+/// </summary>
+[RegisterComponent, NetworkedComponent]
+public sealed partial class ZombifyOnDeathComponent : Component
+{
+    //this is not the component you are looking for
+}