Add DoAfter to eject light bulb (#8988)

This commit is contained in:
themias
2022-06-21 20:55:06 -04:00
committed by GitHub
parent a8f8426eed
commit 4bd1ebdf1d
2 changed files with 69 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ using Robust.Shared.Containers;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Prototypes;
using Content.Shared.MachineLinking;
using System.Threading;
namespace Content.Server.Light.Components
{
@@ -66,5 +67,13 @@ namespace Content.Server.Light.Components
[DataField("togglePort", customTypeSerializer: typeof(PrototypeIdSerializer<ReceiverPortPrototype>))]
public string TogglePort = "Toggle";
public CancellationTokenSource? CancelToken;
/// <summary>
/// How long it takes to eject a bulb from this
/// </summary>
[DataField("ejectBulbDelay")]
public float EjectBulbDelay = 2;
}
}