21 lines
628 B
C#
21 lines
628 B
C#
using System.Threading;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Engineering.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed class DisassembleOnAltVerbComponent : Component
|
|
{
|
|
[ViewVariables]
|
|
[DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
|
public string? Prototype { get; }
|
|
|
|
[ViewVariables]
|
|
[DataField("doAfter")]
|
|
public float DoAfterTime = 0;
|
|
|
|
public CancellationTokenSource TokenSource { get; } = new();
|
|
}
|
|
}
|