2022-08-14 07:57:25 +02:00
|
|
|
|
using Content.Shared.Disposal.Components;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Disposal.Mailing;
|
|
|
|
|
|
|
|
|
|
|
|
[Access(typeof(MailingUnitSystem))]
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class MailingUnitComponent : Component
|
2022-08-14 07:57:25 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// List of targets the mailing unit can send to.
|
|
|
|
|
|
/// Each target is just a disposal routing tag
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("targetList")]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public List<string> TargetList = new();
|
2022-08-14 07:57:25 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The target that gets attached to the disposal holders tag list on flush
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("target")]
|
|
|
|
|
|
public string? Target;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The tag for this mailing unit
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
[DataField("tag")]
|
|
|
|
|
|
public string? Tag;
|
|
|
|
|
|
|
|
|
|
|
|
public SharedDisposalUnitComponent.DisposalUnitBoundUserInterfaceState? DisposalUnitInterfaceState;
|
|
|
|
|
|
}
|