Move BrainSystem and necessary components to Shared (#40499)
* 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>
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
using Content.Server.Body.Systems;
|
||||
|
||||
namespace Content.Server.Body.Components
|
||||
{
|
||||
[RegisterComponent, Access(typeof(BrainSystem))]
|
||||
public sealed partial class BrainComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
6
Content.Shared/Body/Components/BrainComponent.cs
Normal file
6
Content.Shared/Body/Components/BrainComponent.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
using Content.Shared.Body.Systems;
|
||||
|
||||
namespace Content.Shared.Body.Components;
|
||||
|
||||
[RegisterComponent, Access(typeof(BrainSystem))]
|
||||
public sealed partial class BrainComponent : Component;
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
13
Content.Shared/Ghost/GhostOnMoveComponent.cs
Normal file
13
Content.Shared/Ghost/GhostOnMoveComponent.cs
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user