protected override void OnLoad(ConfigNode configNode) { foreach (ConfigNode child in configNode.GetNodes("DIALOG_BOX")) { DialogDetail detail = new DialogDetail(); detail.OnLoad(child); details.Add(detail); } }
public DialogBox(List<DialogDetail> srcDetails) { // Need to do a deep copy to support expresssion. Rather than properly doing a copy // constructor, be lazy and serialize it. details = new List<DialogDetail>(); foreach (DialogDetail srcDetail in srcDetails) { DialogDetail detail = new DialogDetail(); ConfigNode dummy = new ConfigNode("DUMMY"); srcDetail.OnSave(dummy); detail.OnLoad(dummy); details.Add(detail); } }
public DialogBox(List <DialogDetail> srcDetails) { // Need to do a deep copy to support expresssion. Rather than properly doing a copy // constructor, be lazy and serialize it. details = new List <DialogDetail>(); foreach (DialogDetail srcDetail in srcDetails) { DialogDetail detail = new DialogDetail(); ConfigNode dummy = new ConfigNode("DUMMY"); srcDetail.OnSave(dummy); detail.OnLoad(dummy); details.Add(detail); } }