コード例 #1
0
        protected override void OnLoad(ConfigNode configNode)
        {
            foreach (ConfigNode child in configNode.GetNodes("DIALOG_BOX"))
            {
                DialogDetail detail = new DialogDetail();
                detail.OnLoad(child);

                details.Add(detail);
            }
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
        protected override void OnLoad(ConfigNode configNode)
        {
            foreach (ConfigNode child in configNode.GetNodes("DIALOG_BOX"))
            {
                DialogDetail detail = new DialogDetail();
                detail.OnLoad(child);

                details.Add(detail);
            }
        }