Files
DanhengServer-OpenSource/Common/Data/Excel/AvatarRelicRecommendExcel.cs
2025-11-22 22:09:56 +08:00

34 lines
975 B
C#

using EggLink.DanhengServer.Enums.Avatar;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("AvatarRelicRecommend.json")]
public class AvatarRelicRecommendExcel : ExcelResource
{
public uint AvatarID { get; set; }
public List<uint> Set4IDList { get; set; } = [];
public List<uint> Set2IDList { get; set; } = [];
public List<uint> ScoreRankList { get; set; } = [];
public List<AvatarRelicRecommendMainAffix> PropertyList { get; set; } = [];
public override int GetId()
{
return (int)AvatarID;
}
public override void Loaded()
{
GameData.AvatarRelicRecommendData.TryAdd(AvatarID, this);
}
}
public class AvatarRelicRecommendMainAffix
{
[JsonConverter(typeof(StringEnumConverter))]
public RelicTypeEnum RelicType { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public AvatarPropertyTypeEnum PropertyType { get; set; }
}