1
0

MailingUnitComponent.cs 866 B

123456789101112131415161718192021222324252627282930
  1. using Content.Shared.Disposal.Components;
  2. namespace Content.Server.Disposal.Mailing;
  3. [Access(typeof(MailingUnitSystem))]
  4. [RegisterComponent]
  5. public sealed partial class MailingUnitComponent : Component
  6. {
  7. /// <summary>
  8. /// List of targets the mailing unit can send to.
  9. /// Each target is just a disposal routing tag
  10. /// </summary>
  11. [DataField("targetList")]
  12. public List<string> TargetList = new();
  13. /// <summary>
  14. /// The target that gets attached to the disposal holders tag list on flush
  15. /// </summary>
  16. [DataField("target")]
  17. public string? Target;
  18. /// <summary>
  19. /// The tag for this mailing unit
  20. /// </summary>
  21. [ViewVariables(VVAccess.ReadWrite)]
  22. [DataField("tag")]
  23. public string? Tag;
  24. public SharedDisposalUnitComponent.DisposalUnitBoundUserInterfaceState? DisposalUnitInterfaceState;
  25. }