Files
tbd-station-14/Content.Server/Guardian/GuardianComponent.cs
2022-02-16 18:23:23 +11:00

39 lines
1.1 KiB
C#

using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Guardian
{
/// <summary>
/// Given to guardians to monitor their link with the host
/// </summary>
[RegisterComponent]
public sealed class GuardianComponent : Component
{
/// <summary>
/// The guardian host entity
/// </summary>
public EntityUid Host;
/// <summary>
/// Percentage of damage reflected from the guardian to the host
/// </summary>
[ViewVariables]
[DataField("damageShare")]
public float DamageShare { get; set; } = 0.85f;
/// <summary>
/// Maximum distance the guardian can travel before it's forced to recall, use YAML to set
/// </summary>
[ViewVariables]
[DataField("distanceAllowed")]
public float DistanceAllowed { get; set; } = 5f;
/// <summary>
/// If the guardian is currently manifested
/// </summary>
public bool GuardianLoose = false;
}
}