Move id and health examinable to shared (#27867)

* Move id and health examinable to shared

* Make GetInfo public
This commit is contained in:
DrSmugleaf
2024-05-09 18:26:39 -07:00
committed by GitHub
parent 4e3332636a
commit 0e3a2b3ba1
8 changed files with 32 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
using Content.Shared.Damage.Prototypes;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
namespace Content.Shared.HealthExaminable;
[RegisterComponent, Access(typeof(HealthExaminableSystem))]
public sealed partial class HealthExaminableComponent : Component
{
public List<FixedPoint2> Thresholds = new()
{ FixedPoint2.New(10), FixedPoint2.New(25), FixedPoint2.New(50), FixedPoint2.New(75) };
[DataField(required: true)]
public HashSet<ProtoId<DamageTypePrototype>> ExaminableTypes = default!;
/// <summary>
/// Health examine text is automatically generated through creating loc string IDs, in the form:
/// `health-examine-[prefix]-[type]-[threshold]`
/// This part determines the prefix.
/// </summary>
[DataField]
public string LocPrefix = "carbon";
}