mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2026-03-24 05:42:19 +01:00
use fragment material and avatar star up also prevent capt. exp overflow
this took wayyyyyyyyyy longer than it shoud be
This commit is contained in:
51
Common/Utils/ExcelReader/MaterialUseData.cs
Normal file
51
Common/Utils/ExcelReader/MaterialUseData.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Common.Utils.ExcelReader
|
||||
{
|
||||
public class MaterialUseData : BaseExcelReader<MaterialUseData, MaterialUseDataExcel>
|
||||
{
|
||||
public override string FileName { get { return "MaterialUseData.json"; } }
|
||||
|
||||
public MaterialUseDataExcel? FromId(int id)
|
||||
{
|
||||
return All.Where(x => x.UseId == id).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
public partial class MaterialUseDataExcel
|
||||
{
|
||||
[JsonProperty("useType")]
|
||||
public int UseType { get; set; }
|
||||
|
||||
[JsonProperty("MultiUse")]
|
||||
public int MultiUse { get; set; }
|
||||
|
||||
[JsonProperty("MaterialUseConfirmType")]
|
||||
public int MaterialUseConfirmType { get; set; }
|
||||
|
||||
[JsonProperty("paraStr")]
|
||||
public string[] ParaStr { get; set; }
|
||||
|
||||
[JsonProperty("useTip")]
|
||||
public HashName UseTip { get; set; }
|
||||
|
||||
[JsonProperty("useMin")]
|
||||
public int UseMin { get; set; }
|
||||
|
||||
[JsonProperty("useMax")]
|
||||
public int UseMax { get; set; }
|
||||
|
||||
[JsonProperty("AdditionDesc")]
|
||||
public string AdditionDesc { get; set; }
|
||||
|
||||
[JsonProperty("EventID")]
|
||||
public int EventId { get; set; }
|
||||
|
||||
[JsonProperty("DataImpl")]
|
||||
public object DataImpl { get; set; }
|
||||
|
||||
[JsonProperty("useID")]
|
||||
public int UseId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user