Files
tbd-station-14/Content.Server/Destructible/DestructibleComponent.cs
2022-02-16 18:23:23 +11:00

23 lines
679 B
C#

using System.Collections.Generic;
using Content.Server.Destructible.Thresholds;
using Content.Shared.Damage;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Destructible
{
/// <summary>
/// When attached to an <see cref="Robust.Shared.GameObjects.EntityUid"/>, allows it to take damage
/// and triggers thresholds when reached.
/// </summary>
[RegisterComponent]
public sealed class DestructibleComponent : Component
{
[ViewVariables]
[DataField("thresholds")]
public List<DamageThreshold> Thresholds = new();
}
}