Files
DanhengServer-OpenSource/Common/Data/Excel/AvatarPromotionConfigExcel.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

28 lines
721 B
C#

namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("AvatarPromotionConfig.json")]
public class AvatarPromotionConfigExcel : ExcelResource
{
public int AvatarID { get; set; }
public int Promotion { get; set; }
public int MaxLevel { get; set; }
public int PlayerLevelRequire { get; set; }
public int WorldLevelRequire { get; set; }
public List<ItemParam> PromotionCostList { get; set; } = [];
public override int GetId()
{
return AvatarID * 10 + Promotion;
}
public override void Loaded()
{
GameData.AvatarPromotionConfigData.Add(GetId(), this);
}
public class ItemParam
{
public int ItemID;
public int ItemNum;
}
}