コード例 #1
0
 private LBA2Quest.Subquest getSubquest(XmlNode xn)
 {
     LBA2Quest.Subquest sq = new LBA2Quest.Subquest();
     sq.name  = xn.SelectSingleNode("name").InnerText.Trim();
     sq.value = ushort.Parse(xn.SelectSingleNode("value").InnerText.Trim());
     return(sq);
 }
コード例 #2
0
        private LBA2Quest.Subquest[] getSubquests(XmlNodeList nodes)
        {
            LBA2Quest.Subquest[] subquests = new LBA2Quest.Subquest[nodes.Count];

            for (int i = 0; i < nodes.Count; i++)
            {
                subquests[i] = getSubquest(nodes[i]);
            }
            return(subquests);
        }