public List <ResetLvLAwardData> getAwardListById(uint carr) { SXML sXML = XMLMgr.instance.GetSXML("carrlvl_item.item", "id==" + carr.ToString()); bool flag = sXML == null; List <ResetLvLAwardData> result; if (flag) { result = null; } else { this.resetLvLAwardList = new List <ResetLvLAwardData>(); this.resetLvLAwardList.Clear(); List <SXML> nodeList = sXML.GetNodeList("award", null); for (int i = 0; i < nodeList.Count; i++) { ResetLvLAwardData resetLvLAwardData = new ResetLvLAwardData(); resetLvLAwardData.name = nodeList[i].getString("item_name"); resetLvLAwardData.icon = nodeList[i].getString("icon_file"); this.resetLvLAwardList.Add(resetLvLAwardData); } result = this.resetLvLAwardList; } return(result); }
public List <ResetLvLAwardData> getAwardListById(uint carr) { SXML xmlItem = XMLMgr.instance.GetSXML("carrlvl_item.item", "id==" + carr.ToString()); if (xmlItem == null) { return(null); } resetLvLAwardList = new List <ResetLvLAwardData>(); resetLvLAwardList.Clear(); List <SXML> xmlAwardList = xmlItem.GetNodeList("award", null); for (int i = 0; i < xmlAwardList.Count; i++) { ResetLvLAwardData rlad = new ResetLvLAwardData(); rlad.name = xmlAwardList[i].getString("item_name"); rlad.icon = xmlAwardList[i].getString("icon_file"); resetLvLAwardList.Add(rlad); } return(resetLvLAwardList); }