2021-07-10 17:35:33 +02:00
|
|
|
using Content.Shared.Sound;
|
2021-10-07 13:01:27 +02:00
|
|
|
using Content.Shared.Tools;
|
|
|
|
|
using Robust.Shared.Analyzers;
|
2020-04-28 16:44:22 +02:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-05 01:08:38 +01:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2021-10-07 13:01:27 +02:00
|
|
|
using Robust.Shared.Utility;
|
2020-04-28 16:44:22 +02:00
|
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Tools.Components
|
2020-04-28 16:44:22 +02:00
|
|
|
{
|
2021-10-07 13:01:27 +02:00
|
|
|
[RegisterComponent, Friend(typeof(ToolSystem))]
|
|
|
|
|
public class ToolComponent : Component
|
2020-07-02 14:50:57 -07:00
|
|
|
{
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("qualities")]
|
2021-10-07 13:01:27 +02:00
|
|
|
public PrototypeFlags<ToolQualityPrototype> Qualities { get; set; } = new();
|
2020-04-29 13:43:07 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// For tool interactions that have a delay before action this will modify the rate, time to wait is divided by this value
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2021-03-05 01:08:38 +01:00
|
|
|
[DataField("speed")]
|
2020-05-20 11:05:55 +02:00
|
|
|
public float SpeedModifier { get; set; } = 1;
|
2020-04-29 13:43:07 +02:00
|
|
|
|
2021-08-13 11:04:23 +02:00
|
|
|
[DataField("useSound")]
|
|
|
|
|
public SoundSpecifier? UseSound { get; set; }
|
2020-04-28 16:44:22 +02:00
|
|
|
}
|
|
|
|
|
}
|