Network shared implant components (#18714)

This commit is contained in:
Vordenburg
2023-08-05 17:06:40 -04:00
committed by GitHub
parent 298623df4a
commit 4c39486f3c
4 changed files with 13 additions and 7 deletions

View File

@@ -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 <see cref="SharedImplanterSystem"/> on implant
/// Used in instances where mob info needs to be passed to the implant such as MobState triggers
/// </summary>
[RegisterComponent]
[RegisterComponent, NetworkedComponent]
public sealed class ImplantedComponent : Component
{
public Container ImplantContainer = default!;

View File

@@ -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

View File

@@ -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
/// </summary>
[RegisterComponent]
[RegisterComponent, NetworkedComponent]
public sealed class SubdermalImplantComponent : Component
{
/// <summary>

View File

@@ -1,8 +1,11 @@
namespace Content.Shared.Implants.Components;
using Robust.Shared.GameStates;
namespace Content.Shared.Implants.Components;
/// <summary>
/// Triggers implants when the action is pressed
/// </summary>
[RegisterComponent]
[RegisterComponent, NetworkedComponent]
public sealed class TriggerImplantActionComponent : Component
{