2021-05-04 15:37:16 +02:00
|
|
|
using System.Threading;
|
2021-04-01 00:04:56 -07:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Engineering.Components
|
2021-07-12 01:32:10 -07:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class DisassembleOnAltVerbComponent : Component
|
2021-04-01 00:04:56 -07:00
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
2021-05-04 15:37:16 +02:00
|
|
|
[DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
2021-04-01 00:04:56 -07:00
|
|
|
public string? Prototype { get; }
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
[DataField("doAfter")]
|
|
|
|
|
public float DoAfterTime = 0;
|
|
|
|
|
|
|
|
|
|
public CancellationTokenSource TokenSource { get; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|