-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
002a4ca
commit 8b7a0e7
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Content.Shared/ADT/EntityHealthBar /ShowHealthBarsComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
/// <summary> | ||
/// This component allows you to see health bars above damageable mobs. | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)] | ||
public sealed partial class ShowHealthBarsComponent : Component | ||
{ | ||
/// <summary> | ||
/// If null, displays all health bars. | ||
/// If not null, displays health bars of only that damage container. | ||
/// </summary> | ||
|
||
[AutoNetworkedField] | ||
[DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))] | ||
public List<string> DamageContainers = new(); | ||
|
||
public override bool SendOnlyToOwner => true; | ||
} |