2023-04-27 23:54:17 +06:00
|
|
|
using Content.Shared.Damage.Prototypes;
|
2023-08-07 13:30:21 +03:00
|
|
|
using Robust.Shared.GameStates;
|
2023-04-27 23:54:17 +06:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
|
|
2024-01-28 18:37:24 +07:00
|
|
|
namespace Content.Shared._White.EntityHealthBar
|
2023-04-27 23:54:17 +06:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This component allows you to see health bars above damageable mobs.
|
|
|
|
|
/// </summary>
|
2023-08-07 13:30:21 +03:00
|
|
|
[RegisterComponent, NetworkedComponent]
|
2024-01-20 06:52:03 +03:00
|
|
|
public sealed partial class ShowWhiteHealthBarsComponent : Component
|
2023-04-27 23:54:17 +06:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-05-05 11:00:15 +03:00
|
|
|
/// Displays health bars of the damage containers.
|
2023-04-27 23:54:17 +06:00
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
[DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
|
2024-01-19 11:48:35 +03:00
|
|
|
public List<string>? DamageContainers;
|
2023-04-27 23:54:17 +06:00
|
|
|
}
|
|
|
|
|
}
|