mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
27 lines
749 B
C#
27 lines
749 B
C#
using EggLink.DanhengServer.Enums.GridFight;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("GridFightTraitBonus.json")]
|
|
public class GridFightTraitBonusExcel : ExcelResource
|
|
{
|
|
public uint ID { get; set; }
|
|
public uint BonusThreshold { get; set; }
|
|
public List<uint> BonusParamList { get; set; } = [];
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public GridFightTraitBonusTypeEnum BonusType { get; set; }
|
|
|
|
public override int GetId()
|
|
{
|
|
return (int)ID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.GridFightTraitBonusData.TryAdd(ID, []);
|
|
GameData.GridFightTraitBonusData[ID].TryAdd(BonusThreshold, this);
|
|
}
|
|
} |