Files
DanhengServer-OpenSource/Common/Data/Config/SkillAbilityInfo.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

30 lines
735 B
C#

using EggLink.DanhengServer.Data.Excel;
namespace EggLink.DanhengServer.Data.Config;
public class SkillAbilityInfo
{
public List<AbilityInfo> AbilityList { get; set; } = [];
public void Loaded(AvatarConfigExcel excel)
{
foreach (var ability in AbilityList)
{
ability.Loaded();
if (ability.Name.EndsWith("MazeSkill"))
excel.MazeSkill = ability;
else if (ability.Name.Contains("NormalAtk")) excel.MazeAtk = ability;
}
}
}
public class AbilityInfo
{
public string Name { get; set; } = "";
public List<TaskInfo> OnStart { get; set; } = [];
public void Loaded()
{
foreach (var task in OnStart) task.Loaded();
}
}