using Newtonsoft.Json; namespace EggLink.DanhengServer.Data.Excel; [ResourceEntity("ChallengePeakConfig.json")] public class ChallengePeakConfigExcel : ExcelResource { public int ID { get; set; } public int MazeGroupID { get; set; } public int MapEntranceID { get; set; } public List TagList { get; set; } = []; public List HPProgressValueList { get; set; } = []; public List ProgressValueList { get; set; } = []; public List ConfigIDList { get; set; } = []; public List EventIDList { get; set; } = []; public List NpcMonsterIDList { get; set; } = []; public List NormalTargetList { get; set; } = []; [JsonIgnore] public Dictionary> ChallengeMonsters { get; } = []; [JsonIgnore] public ChallengePeakBossConfigExcel? BossExcel { get; set; } public override int GetId() { return ID; } public override void Loaded() { GameData.ChallengePeakConfigData.TryAdd(ID, this); ChallengeMonsters.Add(MazeGroupID, []); for (var i = 0; i < ConfigIDList.Count; i++) ChallengeMonsters[MazeGroupID] .Add(new ChallengeConfigExcel.ChallengeMonsterInfo(ConfigIDList[i], NpcMonsterIDList[i], EventIDList[i])); } }