0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

30 lines
1.0 KiB
C#
Raw Normal View History

2023-03-03 18:52:31 +00:00
using System.Collections.Generic;
2024-05-21 19:10:17 +01:00
namespace SPT.SinglePlayer.Models.Healing
2023-03-03 18:52:31 +00:00
{
public class PlayerHealth
{
private readonly Dictionary<EBodyPart, BodyPartHealth> _health;
public IReadOnlyDictionary<EBodyPart, BodyPartHealth> Health => _health;
public bool IsAlive { get; set; }
public float Hydration { get; set; }
public float Energy { get; set; }
public float Temperature { get; set; }
public PlayerHealth()
{
IsAlive = true;
_health = new Dictionary<EBodyPart, BodyPartHealth>()
{
{ EBodyPart.Head, new BodyPartHealth() },
{ EBodyPart.Chest, new BodyPartHealth() },
{ EBodyPart.Stomach, new BodyPartHealth() },
{ EBodyPart.LeftArm, new BodyPartHealth() },
{ EBodyPart.RightArm, new BodyPartHealth() },
{ EBodyPart.LeftLeg, new BodyPartHealth() },
{ EBodyPart.RightLeg, new BodyPartHealth() }
};
}
}
}