Example #1
0
        public WeaponCastData getWeaponCastDataById(int id)
        {
            WeaponCastData weaponCastData = default(WeaponCastData);
            SXML           sXML           = XMLMgr.instance.GetSXML("cast_exp.", "shadow_flare==" + id);
            bool           flag           = sXML != null;

            if (flag)
            {
                do
                {
                    weaponCastData.material_id = sXML.getInt("material_id");
                    weaponCastData.cast_exp    = sXML.getInt("cast_exp");
                }while (sXML.nextOne());
            }
            this.dicwcsdata[weaponCastData.material_id] = weaponCastData;
            return(weaponCastData);
        }
Example #2
0
        public WeaponCastData getWeaponCastDataById(int id)
        {
            WeaponCastData data  = new WeaponCastData();
            SXML           s_xml = XMLMgr.instance.GetSXML("cast_exp.", "shadow_flare==" + id);

            if (s_xml != null)
            {
                do
                {
                    data.material_id = s_xml.getInt("material_id");
                    data.cast_exp    = s_xml.getInt("cast_exp");
                } while (s_xml.nextOne());
            }
            dicwcsdata[data.material_id] = data;

            return(data);
        }