Add DoAfter to eject light bulb (#8988)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user