Пример #1
0
        public cMagickeyinfo GetMagicKeyInfo(long guid)
        {
            cMagickeyinfo v = null;

            if (mMagicKeyInfo.ContainsKey(guid))
            {
                v = mMagicKeyInfo[guid];
            }
            return(v);
        }
Пример #2
0
        public void UpdateMagickeyInfo(MsgData_sMagickeyinfo item)
        {
            cMagickeyinfo v = new cMagickeyinfo();

            v.guid           = item.guid;           // 物品实例id
            v.magickeyID     = item.magickeyID;     // 法宝配置ID
            v.wuxing         = item.wuxing;         // 悟性值
            v.level          = item.level;          // 等级
            v.totalExp       = item.totalExp;       // 总经验值
            v.starCount      = item.starCount;      // 法宝星级
            v.starProgress   = item.starProgress;   // 法宝星级进度
            v.passiveskill1  = item.passiveskill1;  // 被动技能1
            v.passiveskill2  = item.passiveskill2;  // 被动技能2
            v.passiveskill3  = item.passiveskill3;  // 被动技能3
            v.passiveskill4  = item.passiveskill4;  // 被动技能4
            v.passiveskill5  = item.passiveskill5;  // 被动技能5
            v.passiveskill6  = item.passiveskill6;  // 被动技能6
            v.passiveskill7  = item.passiveskill7;  // 被动技能7
            v.passiveskill8  = item.passiveskill8;  // 被动技能8
            v.passiveskill9  = item.passiveskill8;  // 被动技能9
            v.passiveskill10 = item.passiveskill10; // 被动技能10
            v.passiveskill11 = item.passiveskill11; // 被动技能11
            v.passiveskill12 = item.passiveskill12; // 被动技能12
            v.awakeCount     = item.awakeCount;     // 觉醒次数 0、未觉醒 1、觉醒一次 2、觉醒二次
            v.feisheng       = item.feisheng;       // 飞升等级
            v.feishengext    = item.feishengext;    // 当前飞升经验
            v.activeSkillID  = GetMagickeySkillID(v.magickeyID);
            v.FightPower     = item.FightPower;
            Array.Copy(item.AttrType, v.AttrType, item.AttrType.Length);
            Array.Copy(item.AttrValue, v.AttrValue, item.AttrType.Length);
            if (mMagicKeyInfo.ContainsKey(v.guid))
            {
                mMagicKeyInfo[v.guid] = v;
            }
            else
            {
                mMagicKeyInfo.Add(v.guid, v);
            }
        }