From 4c39486f3cd8e85ecd948a36ebd0452b2fb7ec9a Mon Sep 17 00:00:00 2001
From: Vordenburg <114301317+Vordenburg@users.noreply.github.com>
Date: Sat, 5 Aug 2023 17:06:40 -0400
Subject: [PATCH] Network shared implant components (#18714)
---
Content.Shared/Implants/Components/ImplantedComponent.cs | 5 +++--
Content.Shared/Implants/Components/RattleComponent.cs | 3 ++-
.../Implants/Components/SubdermalImplantComponent.cs | 5 +++--
.../Implants/Components/TriggerImplantActionComponent.cs | 7 +++++--
4 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/Content.Shared/Implants/Components/ImplantedComponent.cs b/Content.Shared/Implants/Components/ImplantedComponent.cs
index 6317fe77c7..beaa9a9072 100644
--- a/Content.Shared/Implants/Components/ImplantedComponent.cs
+++ b/Content.Shared/Implants/Components/ImplantedComponent.cs
@@ -1,4 +1,5 @@
-using Robust.Shared.Containers;
+using Robust.Shared.Containers;
+using Robust.Shared.GameStates;
namespace Content.Shared.Implants.Components;
@@ -6,7 +7,7 @@ namespace Content.Shared.Implants.Components;
/// Added to an entity via the on implant
/// Used in instances where mob info needs to be passed to the implant such as MobState triggers
///
-[RegisterComponent]
+[RegisterComponent, NetworkedComponent]
public sealed class ImplantedComponent : Component
{
public Container ImplantContainer = default!;
diff --git a/Content.Shared/Implants/Components/RattleComponent.cs b/Content.Shared/Implants/Components/RattleComponent.cs
index 310e842104..b107915810 100644
--- a/Content.Shared/Implants/Components/RattleComponent.cs
+++ b/Content.Shared/Implants/Components/RattleComponent.cs
@@ -1,9 +1,10 @@
using Content.Shared.Radio;
+using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Implants.Components;
-[RegisterComponent]
+[RegisterComponent, NetworkedComponent]
public sealed class RattleComponent : Component
{
// The radio channel the message will be sent to
diff --git a/Content.Shared/Implants/Components/SubdermalImplantComponent.cs b/Content.Shared/Implants/Components/SubdermalImplantComponent.cs
index 680955c266..eb8ac9808e 100644
--- a/Content.Shared/Implants/Components/SubdermalImplantComponent.cs
+++ b/Content.Shared/Implants/Components/SubdermalImplantComponent.cs
@@ -1,5 +1,6 @@
-using Content.Shared.Actions;
+using Content.Shared.Actions;
using Content.Shared.Radio;
+using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Shared.Implants.Components;
@@ -9,7 +10,7 @@ namespace Content.Shared.Implants.Components;
/// The actions can be activated via an action, a passive ability (ie tracking), or a reactive ability (ie on death) or some sort of combination
/// They're added and removed with implanters
///
-[RegisterComponent]
+[RegisterComponent, NetworkedComponent]
public sealed class SubdermalImplantComponent : Component
{
///
diff --git a/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs b/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs
index a0dd8248b5..16b4c205fb 100644
--- a/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs
+++ b/Content.Shared/Implants/Components/TriggerImplantActionComponent.cs
@@ -1,8 +1,11 @@
-namespace Content.Shared.Implants.Components;
+using Robust.Shared.GameStates;
+
+namespace Content.Shared.Implants.Components;
+
///
/// Triggers implants when the action is pressed
///
-[RegisterComponent]
+[RegisterComponent, NetworkedComponent]
public sealed class TriggerImplantActionComponent : Component
{