feat: add items #wip

This commit is contained in:
k0t9i
2023-02-02 16:54:38 +04:00
parent 03423d0c41
commit c35f4e317a
14 changed files with 273 additions and 49 deletions

View File

@@ -0,0 +1,35 @@
using Client.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client.Domain.Entities
{
public abstract class BaseItem : EntityInterface
{
public uint Id { get; set; }
public uint ItemId { get; set; }
public ItemTypeEnum Type { get; set; }
public string Name { get; set; }
public string IconName { get; set; }
public string Description { get; set; }
public int Mana { get { return mana; } set { mana = value; }}
public uint Weight { get; set; }
public BaseItem(uint id, uint itemId, ItemTypeEnum type, string name, string iconName, string description, int mana, uint weight)
{
Id = id;
ItemId = itemId;
Type = type;
Name = name;
IconName = iconName;
Description = description;
this.mana = mana;
Weight = weight;
}
private int mana;
}
}