Files
DanhengServer-OpenSource/Common/Data/Excel/RelicSubAffixConfigExcel.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

24 lines
666 B
C#

namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("RelicSubAffixConfig.json")]
public class RelicSubAffixConfigExcel : ExcelResource
{
public int GroupID { get; set; }
public int AffixID { get; set; }
public int StepNum { get; set; }
public override int GetId()
{
return GroupID * 100 + AffixID;
}
public override void Loaded()
{
GameData.RelicSubAffixData.TryGetValue(GroupID, out var affixes);
if (affixes != null)
affixes[AffixID] = this;
else
GameData.RelicSubAffixData[GroupID] = new Dictionary<int, RelicSubAffixConfigExcel> { { AffixID, this } };
}
}