]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Move BrainSystem and necessary components to Shared (#40499)
authorKyle Tyo <36606155+VerinSenpai@users.noreply.github.com>
Tue, 7 Oct 2025 13:10:21 +0000 (09:10 -0400)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 13:10:21 +0000 (13:10 +0000)
* yowza

* Update Content.Shared/Body/Systems/BrainSystem.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update Content.Shared/Ghost/GhostOnMoveComponent.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
* Update BrainSystem.cs

* Update Content.Shared/Body/Systems/BrainSystem.cs

* Update Content.Shared/Body/Systems/BrainSystem.cs

* Update Content.Shared/Body/Systems/BrainSystem.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Server/Body/Components/BrainComponent.cs [deleted file]
Content.Server/Ghost/Components/GhostOnMoveComponent.cs [deleted file]
Content.Shared/Body/Components/BrainComponent.cs [new file with mode: 0644]
Content.Shared/Body/Systems/BrainSystem.cs [moved from Content.Server/Body/Systems/BrainSystem.cs with 92% similarity]
Content.Shared/Ghost/GhostOnMoveComponent.cs [new file with mode: 0644]

diff --git a/Content.Server/Body/Components/BrainComponent.cs b/Content.Server/Body/Components/BrainComponent.cs
deleted file mode 100644 (file)
index 004ff24..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-using Content.Server.Body.Systems;
-
-namespace Content.Server.Body.Components
-{
-    [RegisterComponent, Access(typeof(BrainSystem))]
-    public sealed partial class BrainComponent : Component
-    {
-    }
-}
diff --git a/Content.Server/Ghost/Components/GhostOnMoveComponent.cs b/Content.Server/Ghost/Components/GhostOnMoveComponent.cs
deleted file mode 100644 (file)
index e3abc97..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-namespace Content.Server.Ghost.Components
-{
-    [RegisterComponent]
-    public sealed partial class GhostOnMoveComponent : Component
-    {
-        [DataField("canReturn")] public bool CanReturn { get; set; } = true;
-
-        [DataField("mustBeDead")]
-        public bool MustBeDead = false;
-    }
-}
diff --git a/Content.Shared/Body/Components/BrainComponent.cs b/Content.Shared/Body/Components/BrainComponent.cs
new file mode 100644 (file)
index 0000000..be3c3ec
--- /dev/null
@@ -0,0 +1,6 @@
+using Content.Shared.Body.Systems;
+
+namespace Content.Shared.Body.Components;
+
+[RegisterComponent, Access(typeof(BrainSystem))]
+public sealed partial class BrainComponent : Component;
similarity index 92%
rename from Content.Server/Body/Systems/BrainSystem.cs
rename to Content.Shared/Body/Systems/BrainSystem.cs
index e916849a8161a2222505386cbf57577f2a450b60..55abcbb868797856807642657677bed2cb4c3b22 100644 (file)
@@ -1,12 +1,12 @@
-using Content.Server.Body.Components;
-using Content.Server.Ghost.Components;
+using Content.Shared.Body.Components;
 using Content.Shared.Body.Events;
+using Content.Shared.Ghost;
 using Content.Shared.Mind;
 using Content.Shared.Mind.Components;
 using Content.Shared.Mobs.Components;
 using Content.Shared.Pointing;
 
-namespace Content.Server.Body.Systems;
+namespace Content.Shared.Body.Systems;
 
 public sealed class BrainSystem : EntitySystem
 {
@@ -43,4 +43,3 @@ public sealed class BrainSystem : EntitySystem
         args.Cancel();
     }
 }
-
diff --git a/Content.Shared/Ghost/GhostOnMoveComponent.cs b/Content.Shared/Ghost/GhostOnMoveComponent.cs
new file mode 100644 (file)
index 0000000..44cb3d0
--- /dev/null
@@ -0,0 +1,13 @@
+using Robust.Shared.GameStates;
+
+namespace Content.Shared.Ghost;
+
+[RegisterComponent, NetworkedComponent]
+public sealed partial class GhostOnMoveComponent : Component
+{
+    [DataField]
+    public bool CanReturn = true;
+
+    [DataField]
+    public bool MustBeDead;
+}