private void Readxml() { List <SXML> sXMLList = XMLMgr.instance.GetSXMLList("pvpsheild.sheild", ""); hudunData.max_level = sXMLList.Count; foreach (SXML current in sXMLList) { hudunData hudunData = new hudunData(); hudunData.hdLvl = current.getInt("lv"); hudunData.raise_zhuan = current.getInt("raise_zhuan"); hudunData.raise_lv = current.getInt("raise_lv"); hudunData.needcount = current.getInt("item_cost"); hudunData.addcount = current.getInt("item_refill"); hudunData.energy = current.getInt("energy"); this.hdData[hudunData.hdLvl] = hudunData; } }
void Readxml() { List <SXML> xml = XMLMgr.instance.GetSXMLList("pvpsheild.sheild"); hudunData.max_level = xml.Count; foreach (SXML x in xml) { hudunData info = new hudunData(); info.hdLvl = x.getInt("lv"); info.raise_zhuan = x.getInt("raise_zhuan"); info.raise_lv = x.getInt("raise_lv"); info.needcount = x.getInt("item_cost"); info.addcount = x.getInt("item_refill"); info.energy = x.getInt("energy"); hdData[info.hdLvl] = info; } }