From ac7bde68e9d2c5280b9df5d75b4c0ca11f7cb332 Mon Sep 17 00:00:00 2001 From: k0t9i Date: Mon, 27 Feb 2023 23:43:08 +0400 Subject: [PATCH] feat: add vital stats to players --- Client/Domain/Entities/Player.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Client/Domain/Entities/Player.cs b/Client/Domain/Entities/Player.cs index f282c46..679ac86 100644 --- a/Client/Domain/Entities/Player.cs +++ b/Client/Domain/Entities/Player.cs @@ -15,7 +15,7 @@ namespace Client.Domain.Entities { private FullName fullName; private Phenotype phenotype; - private VitalStats vitalStats = new VitalStats(0, 0, 0, 0, 0, 0); + private VitalStats vitalStats; public uint Id { get; set; } public Transform Transform { get; set; } @@ -64,12 +64,13 @@ namespace Client.Domain.Entities public uint AggroRadius { get; set; } = 0; public bool IsHostile { get; set; } = false; - public Player(uint id, Transform transform, FullName fullName, Phenotype phenotype) + public Player(uint id, Transform transform, FullName fullName, Phenotype phenotype, VitalStats vitalStats) { Id = id; Transform = transform; this.fullName = FullName = fullName; this.phenotype = Phenotype = phenotype; + this.vitalStats = vitalStats; } private void Phenotype_PropertyChanged(object? sender, PropertyChangedEventArgs e)