+using Content.Shared.Damage.Prototypes;
using Content.Shared.Overlays;
using Robust.Client.Player;
using Robust.Shared.Console;
+using Robust.Shared.Prototypes;
using System.Linq;
namespace Content.Client.Commands;
{
var showHealthBarsComponent = new ShowHealthBarsComponent
{
- DamageContainers = args.ToList(),
+ DamageContainers = args.Select(arg => new ProtoId<DamageContainerPrototype>(arg)).ToList(),
HealthStatusIcon = null,
NetSyncEnabled = false
};
using Content.Shared.StatusIcon;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
-using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Shared.Overlays;
/// <summary>
/// Displays health bars of the damage containers.
/// </summary>
- [DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
- public List<string> DamageContainers = new();
+ [DataField]
+ public List<ProtoId<DamageContainerPrototype>> DamageContainers = new()
+ {
+ "Biological"
+ };
[DataField]
public ProtoId<HealthIconPrototype>? HealthStatusIcon = "HealthIconFine";
using Content.Shared.Damage.Prototypes;
using Robust.Shared.GameStates;
-using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
+using Robust.Shared.Prototypes;
namespace Content.Shared.Overlays;
/// <summary>
/// Displays health status icons of the damage containers.
/// </summary>
- [DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
- public List<string> DamageContainers = new();
+ [DataField]
+ public List<ProtoId<DamageContainerPrototype>> DamageContainers = new()
+ {
+ "Biological"
+ };
}
categories: [ HideSpawnMenu ]
components:
- type: ShowHealthBars
- damageContainers:
- - Biological
- type: ShowHealthIcons
- damageContainers:
- - Biological
- type: entity
parent: ClothingEyesBase
sprite: Clothing/Eyes/Hud/syndagent.rsi
- type: ShowSyndicateIcons
- type: ShowHealthBars
- damageContainers:
- - Biological
- type: entity
parent: [ClothingEyesGlassesSunglasses, ShowSecurityIcons]
- type: Construction
node: syndicatemedical
- type: ShowHealthBars
- damageContainers:
- - Biological
- type: InteractionPopup
interactSuccessString: petting-success-syndicate-cyborg
interactFailureString: petting-failure-syndicate-cyborg