0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
2023-03-03 18:52:31 +00:00

30 lines
1.0 KiB
C#

using System.Collections.Generic;
namespace Aki.SinglePlayer.Models.Healing
{
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() }
};
}
}
}