2024-08-16 00:16:23 +08:00

26 lines
691 B
C#

using Milimoe.FunGame.Core.Interface.Entity;
namespace Milimoe.FunGame.Core.Entity
{
public class Item : BaseEntity, IItem
{
public string Describe { get; set; } = "";
public decimal Price { get; set; }
public char Key { get; set; }
public bool Active { get; set; }
public bool Enable { get; set; }
public Character? Character { get; set; } = null;
public Skill? Skill { get; set; } = null;
internal Item(bool active = false)
{
Active = active;
}
public override bool Equals(IBaseEntity? other)
{
return other is Item c && c.Name == Name;
}
}
}