diff --git a/Content.Shared/ADT/EntityHealthBar /ShowHealthBarsComponent.cs b/Content.Shared/ADT/EntityHealthBar /ShowHealthBarsComponent.cs new file mode 100644 index 00000000000..97816217fe8 --- /dev/null +++ b/Content.Shared/ADT/EntityHealthBar /ShowHealthBarsComponent.cs @@ -0,0 +1,23 @@ +using Content.Shared.Damage.Prototypes; +using Robust.Shared.GameStates; +using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; + +namespace Content.Shared.Backmen.EntityHealthBar; + +/// +/// This component allows you to see health bars above damageable mobs. +/// +[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)] +public sealed partial class ShowHealthBarsComponent : Component +{ + /// + /// If null, displays all health bars. + /// If not null, displays health bars of only that damage container. + /// + + [AutoNetworkedField] + [DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer))] + public List DamageContainers = new(); + + public override bool SendOnlyToOwner => true; +}