예제 #1
0
        public SignData ReadXML(int i)
        {
            SignData signdata = new SignData();;
            SXML     signxml  = XMLMgr.instance.GetSXML("signup.signup", "signup_times==" + i);

            if (signxml != null)
            {
                signdata.sign_day = signxml.getInt("SIGNUP_TIMES");
                signdata.vip_lv   = signxml.getString("vip_double");
                signdata.item_id  = signxml.getString("item_id");
                signdata.num      = signxml.getInt("num");
            }
            return(signdata);
        }
예제 #2
0
        public SignData ReadXML(int i)
        {
            SignData result = default(SignData);
            SXML     sXML   = XMLMgr.instance.GetSXML("signup.signup", "signup_times==" + i);
            bool     flag   = sXML != null;

            if (flag)
            {
                result.sign_day = sXML.getInt("SIGNUP_TIMES");
                result.vip_lv   = sXML.getString("vip_double");
                result.item_id  = sXML.getString("item_id");
                result.num      = sXML.getInt("num");
            }
            return(result);
        }