feat: add npc and players

This commit is contained in:
k0t9i
2023-01-28 16:44:41 +04:00
parent 340e91b325
commit 4778f1c478
5 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,32 @@
using Client.Domain.Enums;
using Client.Domain.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Domain.Entities
{
public class NPC : EntityInterface
{
public uint Id { get; set; }
public Transform Transform { get; set; }
public bool IsHostile { get; set; }
public uint NpcId { get; set; }
public SpoilStateEnum SpoilState { get; set; }
public FullName FullName { get; set; }
public VitalStats VitalStats { get; set; }
public NPC(uint id, Transform transform, bool isHostile, uint npcId, SpoilStateEnum spoilState, FullName fullName, VitalStats vitalStats)
{
Id = id;
Transform = transform;
IsHostile = isHostile;
NpcId = npcId;
SpoilState = spoilState;
FullName = fullName;
VitalStats = vitalStats;
}
}
}

View File

@ -0,0 +1,26 @@
using Client.Domain.Enums;
using Client.Domain.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Domain.Entities
{
public class Player : EntityInterface
{
public uint Id { get; set; }
public Transform Transform { get; set; }
public FullName FullName { get; set; }
public Phenotype Phenotype { get; set; }
public Player(uint id, Transform transform, FullName fullName, Phenotype phenotype)
{
Id = id;
Transform = transform;
FullName = fullName;
Phenotype = phenotype;
}
}
}