using Newtonsoft.Json; namespace EggLink.DanhengServer.Data.Config; public class DialogueInfo { public List OnInitSequece { get; set; } = []; public List OnStartSequece { get; set; } = []; [JsonIgnore] public List DialogueIds { get; set; } = []; public void Loaded() { foreach (var task in OnInitSequece) foreach (var ta in task.TaskList) foreach (var option in ta.OptionList) DialogueIds.Add(option.DialogueEventID); foreach (var task in OnStartSequece) foreach (var ta in task.TaskList) foreach (var option in ta.OptionList) DialogueIds.Add(option.DialogueEventID); } } public class DialogueTaskInfo { public List TaskList { get; set; } = []; public List OptionList { get; set; } = []; public int DialogueEventID { get; set; } }