Add inflatable door (#6393)

Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
Fishfish458
2022-02-08 15:54:14 -06:00
committed by GitHub
parent 91a9d474c6
commit 997a500fc3
25 changed files with 375 additions and 67 deletions

View File

@@ -0,0 +1,23 @@
using System.Threading;
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;
namespace Content.Server.Engineering.Components
{
[RegisterComponent]
public 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();
}
}