mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 20:19:34 +08:00
26 lines
694 B
C#
26 lines
694 B
C#
using Milimoe.FunGame.Core.Interface.Entity;
|
|
|
|
namespace Milimoe.FunGame.Core.Entity
|
|
{
|
|
public class Item : BaseEntity, IItem
|
|
{
|
|
public string Describe { get; set; } = "";
|
|
public double Price { get; set; }
|
|
public char Key { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public bool Enable { get; set; }
|
|
public Character? Character { get; set; } = null;
|
|
public Skill? Skill { get; set; } = null;
|
|
|
|
internal Item(bool active = false)
|
|
{
|
|
IsActive = active;
|
|
}
|
|
|
|
public override bool Equals(IBaseEntity? other)
|
|
{
|
|
return other is Item c && c.Name == Name;
|
|
}
|
|
}
|
|
}
|