feat: add vital stats to players
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Client.Domain.Entities
|
|||||||
{
|
{
|
||||||
private FullName fullName;
|
private FullName fullName;
|
||||||
private Phenotype phenotype;
|
private Phenotype phenotype;
|
||||||
private VitalStats vitalStats = new VitalStats(0, 0, 0, 0, 0, 0);
|
private VitalStats vitalStats;
|
||||||
|
|
||||||
public uint Id { get; set; }
|
public uint Id { get; set; }
|
||||||
public Transform Transform { get; set; }
|
public Transform Transform { get; set; }
|
||||||
@@ -64,12 +64,13 @@ namespace Client.Domain.Entities
|
|||||||
public uint AggroRadius { get; set; } = 0;
|
public uint AggroRadius { get; set; } = 0;
|
||||||
public bool IsHostile { get; set; } = false;
|
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;
|
Id = id;
|
||||||
Transform = transform;
|
Transform = transform;
|
||||||
this.fullName = FullName = fullName;
|
this.fullName = FullName = fullName;
|
||||||
this.phenotype = Phenotype = phenotype;
|
this.phenotype = Phenotype = phenotype;
|
||||||
|
this.vitalStats = vitalStats;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Phenotype_PropertyChanged(object? sender, PropertyChangedEventArgs e)
|
private void Phenotype_PropertyChanged(object? sender, PropertyChangedEventArgs e)
|
||||||
|
Reference in New Issue
Block a user