GuardianHostComponent.cs 889 B

12345678910111213141516171819202122232425262728293031
  1. using Robust.Shared.Containers;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Server.Guardian
  4. {
  5. /// <summary>
  6. /// Given to guardian users upon establishing a guardian link with the entity
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class GuardianHostComponent : Component
  10. {
  11. /// <summary>
  12. /// Guardian hosted within the component
  13. /// </summary>
  14. /// <remarks>
  15. /// Can be null if the component is added at any time.
  16. /// </remarks>
  17. [DataField]
  18. public EntityUid? HostedGuardian;
  19. /// <summary>
  20. /// Container which holds the guardian
  21. /// </summary>
  22. [ViewVariables] public ContainerSlot GuardianContainer = default!;
  23. [DataField]
  24. public EntProtoId Action = "ActionToggleGuardian";
  25. [DataField] public EntityUid? ActionEntity;
  26. }
  27. }