mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
33 lines
795 B
C#
33 lines
795 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();
|
|
|
|
excel.MazeAbility.Add(ability.Name, ability);
|
|
|
|
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();
|
|
}
|
|
} |