Exemple #1
0
        void onSkillUp(Variant data)
        {
            int id = data["skid"];
            int lv = data["sklvl"];
            //int spt = data["spt"];

            Variant skill = new Variant();

            skill["skill_id"]    = id;
            skill["skill_level"] = lv;
            SkillModel.getInstance().changeSkillList(skill);
        }
Exemple #2
0
        void onSetUpSkill(Variant data)
        {
            int res = data["res"];

            if (res != 1)
            {
                Globle.err_output(res);
                return;
            }
            Variant skill = new Variant();

            skill["skill_id"]    = data["skill_id"];
            skill["skill_level"] = data["skill_level"];
            SkillModel.getInstance().changeSkillList(skill);

            dispatchEvent(GameEvent.Create(EVENT_SKILL_UP, this, skill));
        }