void readxml()
        {
            List <SXML> xml = XMLMgr.instance.GetSXMLList("achievement.title");

            foreach (SXML x in xml)
            {
                rankinfos infos = new rankinfos();
                infos.name     = x.getString("title_name"); // -- 原为rank_name
                infos.title_id = x.getInt("title_id");
                infos.rankexp  = x.getInt("para");
                foreach (var v in x.GetNodeList("nature"))
                {
                    infos.nature[v.getUint("att_type")] = v.getInt("att_value");
                }
                dicrankinfo[infos.title_id] = infos;
            }
        }
Example #2
0
        private void readxml()
        {
            List <SXML> sXMLList = XMLMgr.instance.GetSXMLList("achievement.title", "");

            foreach (SXML current in sXMLList)
            {
                rankinfos rankinfos = new rankinfos();
                rankinfos.name     = current.getString("title_name");
                rankinfos.title_id = current.getInt("title_id");
                rankinfos.rankexp  = current.getInt("para");
                foreach (SXML current2 in current.GetNodeList("nature", ""))
                {
                    rankinfos.nature[current2.getUint("att_type")] = current2.getInt("att_value");
                }
                this.dicrankinfo[rankinfos.title_id] = rankinfos;
            }
        }