CustomHead and Frame impl, with GetMainDataRsp fix

This commit is contained in:
rafi1212122
2023-06-07 10:21:58 +07:00
parent f95f370a48
commit cd2087f6cb
20 changed files with 324 additions and 16 deletions

View File

@@ -0,0 +1,61 @@
using Newtonsoft.Json;
namespace Common.Utils.ExcelReader
{
public class CustomHeadData : BaseExcelReader<CustomHeadData, CustomHeadDataExcel>
{
public override string FileName { get { return "CustomHeadData.json"; } }
}
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public partial class CustomHeadDataExcel
{
[JsonProperty("indexID")]
public int IndexId { get; set; }
[JsonProperty("Page")]
public int Page { get; set; }
[JsonProperty("headTitle")]
public string HeadTitle { get; set; }
[JsonProperty("headDescription")]
public string HeadDescription { get; set; }
[JsonProperty("iconPath")]
public string IconPath { get; set; }
[JsonProperty("imagePath")]
public string ImagePath { get; set; }
[JsonProperty("Show")]
public bool Show { get; set; }
[JsonProperty("HeadType")]
public int HeadType { get; set; }
[JsonProperty("HeadParaInt")]
public int HeadParaInt { get; set; }
[JsonProperty("TimeType")]
public int TimeType { get; set; }
[JsonProperty("During")]
public int During { get; set; }
[JsonProperty("EndTime")]
public string EndTime { get; set; }
[JsonProperty("BgColorPath")]
public string BgColorPath { get; set; }
[JsonProperty("rarity")]
public int Rarity { get; set; }
[JsonProperty("DataImpl")]
public object DataImpl { get; set; }
[JsonProperty("headID")]
public int HeadId { get; set; }
}
}

View File

@@ -0,0 +1,43 @@
using Newtonsoft.Json;
namespace Common.Utils.ExcelReader
{
public class FrameData : BaseExcelReader<FrameData, FrameDataExcel>
{
public override string FileName { get { return "FrameData.json"; } }
}
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public partial class FrameDataExcel
{
[JsonProperty("name")]
public HashName Name { get; set; }
[JsonProperty("rarity")]
public int Rarity { get; set; }
[JsonProperty("desc")]
public HashName Desc { get; set; }
[JsonProperty("iconPath")]
public string IconPath { get; set; }
[JsonProperty("imagePath")]
public string ImagePath { get; set; }
[JsonProperty("isShow")]
public bool IsShow { get; set; }
[JsonProperty("UIShowOrder")]
public int UiShowOrder { get; set; }
[JsonProperty("Type")]
public int Type { get; set; }
[JsonProperty("DataImpl")]
public object DataImpl { get; set; }
[JsonProperty("id")]
public int Id { get; set; }
}
}