Network shared implant components (#18714)
This commit is contained in:
@@ -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!;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user