Files
tbd-station-14/Content.Server/Guardian/GuardianHostComponent.cs

32 lines
1.0 KiB
C#

using Robust.Shared.Containers;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Guardian
{
/// <summary>
/// Given to guardian users upon establishing a guardian link with the entity
/// </summary>
[RegisterComponent]
public sealed partial 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!;
[DataField("action", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string Action = "ActionToggleGuardian";
[DataField("actionEntity")] public EntityUid? ActionEntity;
}
}