2025-04-19 16:20:40 +10:00
|
|
|
|
using Content.Shared.Disposal.Mailing;
|
|
|
|
|
|
using Robust.Shared.GameStates;
|
2022-08-14 07:57:25 +02:00
|
|
|
|
|
2025-04-19 16:20:40 +10:00
|
|
|
|
namespace Content.Shared.Disposal.Components;
|
2022-08-14 07:57:25 +02:00
|
|
|
|
|
2025-04-19 16:20:40 +10:00
|
|
|
|
[Access(typeof(SharedMailingUnitSystem))]
|
|
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
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>
|
2025-04-19 16:20:40 +10:00
|
|
|
|
[DataField, AutoNetworkedField]
|
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>
|
2025-04-19 16:20:40 +10:00
|
|
|
|
[DataField, AutoNetworkedField]
|
2022-08-14 07:57:25 +02:00
|
|
|
|
public string? Target;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The tag for this mailing unit
|
|
|
|
|
|
/// </summary>
|
2025-04-19 16:20:40 +10:00
|
|
|
|
[DataField, AutoNetworkedField]
|
2022-08-14 07:57:25 +02:00
|
|
|
|
public string? Tag;
|
|
|
|
|
|
}
|