Guardians (Holoparasites) (#5140)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
27
Content.Server/Guardian/GuardianHostComponent.cs
Normal file
27
Content.Server/Guardian/GuardianHostComponent.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Guardian
|
||||
{
|
||||
/// <summary>
|
||||
/// Given to guardian users upon establishing a guardian link with the entity
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("GuardianHost")]
|
||||
public sealed class GuardianHostComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Guardian hosted within the component
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Can be null if the component is added at any time.
|
||||
/// </remarks>
|
||||
public EntityUid? HostedGuardian;
|
||||
|
||||
/// <summary>
|
||||
/// Container which holds the guardian
|
||||
/// </summary>
|
||||
[ViewVariables] public ContainerSlot GuardianContainer = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user