예제 #1
0
        //副本信息
        public void UpdateInfo(MsgData_sNeiGonginset item)
        {
            NeiGonginset v = new NeiGonginset();

            v.id     = item.id;     // 经脉的ID;
            v.NodeId = item.NodeId; // 最后冲穴成功的穴位ID
            v.Level  = item.Level;  // 穴位当前的等级
            if (mInfo.ContainsKey(v.id))
            {
                mInfo[v.id] = v;
            }
            else
            {
                mInfo.Add(v.id, v);
            }
        }
예제 #2
0
        public NeiGonginset GetInfo(int id)
        {
            NeiGonginset v = null;

            if (mInfo.ContainsKey(id))
            {
                v = mInfo[id];
            }
//             else
//             {
//                 v = new NeiGonginset();
//                 v.id = id;
//                 v.NodeId = 0; // 最后冲穴成功的穴位ID
//                 v.Level = 0; // 穴位当前的等级
//                 mInfo[id] = v;
//             }
            return(v);
        }
예제 #3
0
        public void OnOpenNode(GameEvent ge, EventParameter param)
        {
            MsgData_sOpenNode data = param.msgParameter as MsgData_sOpenNode;

            if (data.result != 0)
            {
                return;
            }
            NeiGonginset v = GetInfo(data.id);

            if (v != null)
            {
                v.NodeId = data.NodeId;
                v.Level  = data.Level;
            }
            else
            {
                v           = new NeiGonginset();
                v.id        = data.id;
                v.NodeId    = data.NodeId; // 最后冲穴成功的穴位ID
                v.Level     = data.Level;  // 穴位当前的等级
                mInfo[v.id] = v;
            }
        }