Files
crystall-punk-14/Content.Server/Tools/Components/LatticeCuttingComponent.cs

30 lines
835 B
C#
Raw Normal View History

using System.Threading;
using Content.Shared.Tools;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Tools.Components;
[RegisterComponent]
public sealed class LatticeCuttingComponent : Component
{
[ViewVariables]
[DataField("toolComponentNeeded")]
public bool ToolComponentNeeded = true;
[ViewVariables]
[DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
public string QualityNeeded = "Cutting";
[ViewVariables]
[DataField("delay")]
public float Delay = 0.25f;
[ViewVariables]
[DataField("vacuumDelay")]
public float VacuumDelay = 1.75f;
/// <summary>
/// Used for do_afters.
/// </summary>
public CancellationTokenSource? CancelTokenSource = null;
}