avatar skill impl...

i hate mongo C#
This commit is contained in:
rafi1212122
2023-06-03 21:29:13 +07:00
parent 96fe9b054d
commit 28913ad652
6 changed files with 276 additions and 10 deletions

View File

@@ -0,0 +1,39 @@
using Newtonsoft.Json;
namespace Common.Utils.ExcelReader
{
internal class AvatarSubSkillLevelData : BaseExcelReader<AvatarSubSkillLevelData, AvatarSubSkillLevelDataExcel>
{
public override string FileName { get { return "AvatarSubSkillLevelDataV2.json"; } }
public List<AvatarSubSkillLevelDataExcel> FromType(int type)
{
return All.Where(d => d.ItemType == type).ToList();
}
}
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public partial class AvatarSubSkillLevelDataExcel
{
[JsonProperty("ItemList_1")]
public AvatarSubSkillLevelItemList[] ItemList1 { get; set; }
[JsonProperty("DataImpl")]
public object DataImpl { get; set; }
[JsonProperty("ItemType")]
public int ItemType { get; set; }
[JsonProperty("SkillLevel")]
public int SkillLevel { get; set; }
}
public partial class AvatarSubSkillLevelItemList
{
[JsonProperty("itemMetaID")]
public int ItemMetaId { get; set; }
[JsonProperty("itemNum")]
public int ItemNum { get; set; }
}
}