using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
using Robust.Shared.Utility;
namespace Content.Shared.Silicons.Borgs.Components;
///
/// Periodically broadcasts borg data to robotics consoles.
/// When not emagged, handles disabling and destroying commands as expected.
///
[RegisterComponent, Access(typeof(SharedBorgSystem))]
public sealed partial class BorgTransponderComponent : Component
{
///
/// Sprite of the chassis to send.
///
[DataField(required: true)]
public SpriteSpecifier? Sprite;
///
/// Name of the chassis to send.
///
[DataField(required: true)]
public string Name = string.Empty;
///
/// Popup shown to everyone when a borg is disabled.
/// Gets passed a string "name".
///
[DataField]
public LocId DisabledPopup = "borg-transponder-disabled-popup";
///
/// How long to wait between each broadcast.
///
[DataField]
public TimeSpan BroadcastDelay = TimeSpan.FromSeconds(5);
///
/// When to next broadcast data.
///
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan NextBroadcast = TimeSpan.Zero;
}