2022-02-08 00:42:49 -08:00
|
|
|
using System.Threading;
|
2021-10-07 13:01:27 +02:00
|
|
|
using Content.Shared.Tools;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2020-05-20 10:55:17 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Tools.Components
|
2020-05-20 10:55:17 +02:00
|
|
|
{
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2022-01-30 14:48:18 +11:00
|
|
|
public sealed class TilePryingComponent : Component
|
2020-05-20 10:55:17 +02:00
|
|
|
{
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("toolComponentNeeded")]
|
2022-01-30 14:48:18 +11:00
|
|
|
public bool ToolComponentNeeded = true;
|
2020-05-20 10:55:17 +02:00
|
|
|
|
2021-10-07 13:01:27 +02:00
|
|
|
[DataField("qualityNeeded", customTypeSerializer:typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
2022-01-30 14:48:18 +11:00
|
|
|
public string QualityNeeded = "Prying";
|
2023-07-17 11:47:20 +04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Whether this tool can pry tiles with CanAxe.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("advanced")]
|
|
|
|
|
public bool Advanced = false;
|
2020-05-20 10:55:17 +02:00
|
|
|
|
2022-01-30 14:48:18 +11:00
|
|
|
[DataField("delay")]
|
|
|
|
|
public float Delay = 1f;
|
2020-05-20 10:55:17 +02:00
|
|
|
}
|
|
|
|
|
}
|