Files
tbd-station-14/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs
2021-10-07 13:01:27 +02:00

29 lines
963 B
C#

using Content.Shared.Damage;
using Content.Shared.Tools;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
namespace Content.Server.Damage.Components
{
[RegisterComponent]
public class DamageOnToolInteractComponent : Component
{
public override string Name => "DamageOnToolInteract";
[DataField("tools")]
public PrototypeFlags<ToolQualityPrototype> Tools { get; } = new ();
// TODO: Remove this snowflake stuff, make damage per-tool quality perhaps?
[DataField("weldingDamage")]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier? WeldingDamage { get; }
[DataField("defaultDamage")]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier? DefaultDamage { get; }
}
}