1
0

ShowHealthIconsComponent.cs 645 B

1234567891011121314151617181920212223
  1. using Content.Shared.Damage.Prototypes;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Shared.Overlays;
  5. /// <summary>
  6. /// This component allows you to see health status icons above damageable mobs.
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent]
  9. [AutoGenerateComponentState(true)]
  10. public sealed partial class ShowHealthIconsComponent : Component
  11. {
  12. /// <summary>
  13. /// Displays health status icons of the damage containers.
  14. /// </summary>
  15. [DataField]
  16. [AutoNetworkedField]
  17. public List<ProtoId<DamageContainerPrototype>> DamageContainers = new()
  18. {
  19. "Biological"
  20. };
  21. }