* create devicenet frequencies * create borg transponder and give it to all nt borgs * add robotics console * actually implement battery charge display + some fix * tab * real explosion * little safer * disable destroy button clientside too when on cooldown * m * how do i do this when i review things... Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * webedit ops Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> * ui updates * oracle java * do a thing * update ui when a borg times out * maybe fix test * add IsLocked to LockSystem * make destroying gib the chassis again, so emagging isnt sus * use locking * require using alt click to unlock so normal click is open ui * the * use LogType.Action * take this L * pocket lint? * sharer * pro ops * robor pushmarkup * m * update and make it not use prototype anymore * frame0 * update yaml * untroll * bad * h --------- Co-authored-by: deltanedas <@deltanedas:kde.org> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Shared.Silicons.Borgs.Components;
|
|
|
|
/// <summary>
|
|
/// Periodically broadcasts borg data to robotics consoles.
|
|
/// When not emagged, handles disabling and destroying commands as expected.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(SharedBorgSystem))]
|
|
public sealed partial class BorgTransponderComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Sprite of the chassis to send.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public SpriteSpecifier? Sprite;
|
|
|
|
/// <summary>
|
|
/// Name of the chassis to send.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public string Name = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Popup shown to everyone when a borg is disabled.
|
|
/// Gets passed a string "name".
|
|
/// </summary>
|
|
[DataField]
|
|
public LocId DisabledPopup = "borg-transponder-disabled-popup";
|
|
|
|
/// <summary>
|
|
/// How long to wait between each broadcast.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan BroadcastDelay = TimeSpan.FromSeconds(5);
|
|
|
|
/// <summary>
|
|
/// When to next broadcast data.
|
|
/// </summary>
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
public TimeSpan NextBroadcast = TimeSpan.Zero;
|
|
}
|