DestructibleComponent.cs 478 B

12345678910111213141516
  1. using Content.Server.Destructible.Thresholds;
  2. namespace Content.Server.Destructible
  3. {
  4. /// <summary>
  5. /// When attached to an <see cref="Robust.Shared.GameObjects.EntityUid"/>, allows it to take damage
  6. /// and triggers thresholds when reached.
  7. /// </summary>
  8. [RegisterComponent]
  9. public sealed partial class DestructibleComponent : Component
  10. {
  11. [DataField("thresholds")]
  12. public List<DamageThreshold> Thresholds = new();
  13. }
  14. }