1
0

GuardianComponent.cs 941 B

12345678910111213141516171819202122232425262728293031323334
  1. namespace Content.Server.Guardian
  2. {
  3. /// <summary>
  4. /// Given to guardians to monitor their link with the host
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class GuardianComponent : Component
  8. {
  9. /// <summary>
  10. /// The guardian host entity
  11. /// </summary>
  12. [DataField]
  13. public EntityUid? Host;
  14. /// <summary>
  15. /// Percentage of damage reflected from the guardian to the host
  16. /// </summary>
  17. [DataField]
  18. public float DamageShare { get; set; } = 0.65f;
  19. /// <summary>
  20. /// Maximum distance the guardian can travel before it's forced to recall, use YAML to set
  21. /// </summary>
  22. [DataField]
  23. public float DistanceAllowed { get; set; } = 5f;
  24. /// <summary>
  25. /// If the guardian is currently manifested
  26. /// </summary>
  27. [DataField]
  28. public bool GuardianLoose;
  29. }
  30. }