using Milimoe.FunGame.Core.Interface.Entity;
namespace Milimoe.FunGame.Core.Entity
{
///
/// 角色职业类
///
public class Class : BaseEntity
{
///
/// 职业名称
///
public override string Name { get; set; } = "";
///
/// 职业等级
///
public int Level
{
get
{
return Math.Max(0, field);
}
set
{
field = Math.Max(0, value);
}
}
///
/// 职业战技
///
public HashSet Skills { get; set; } = [];
///
/// 职业魔法
///
public HashSet Magics { get; set; } = [];
///
/// 职业被动
///
public HashSet PassiveSkills { get; set; } = [];
///
/// 职业爆发技
///
public HashSet SuperSkills { get; set; } = [];
public override bool Equals(IBaseEntity? other)
{
return other is Class && other.GetIdName() == GetIdName();
}
}
}