Exemple #1
0
 public ushort GetMagicLevel(uint typeid)
 {
     if (mDicMagic.ContainsKey(typeid))
     {
         GameStruct.RoleMagicInfo info = mDicMagic[typeid];
         return(info.level);
     }
     return(0);
 }
Exemple #2
0
 public void AddMagicInfo(GameBase.Network.Internal.MagicInfo info)
 {
     GameStruct.RoleMagicInfo magicinfo = new GameStruct.RoleMagicInfo();
     magicinfo.magicid = info.magicid;
     magicinfo.level = info.level;
     magicinfo.exp = info.exp;
     magicinfo.id = info.id;
     mDicMagic[magicinfo.magicid] = magicinfo;
     if (magicinfo.magicid == GameStruct.MagicTypeInfo.LIUXINGYUNHUO) mbLiuXingYunHuo = true;
 }
Exemple #3
0
 public void SendMagicInfo(GameStruct.RoleMagicInfo info)
 {
     NetMsg.MsgMagicInfo magicinfo = new NetMsg.MsgMagicInfo();
     magicinfo.Create(null, play.GetGamePackKeyEx());
     magicinfo.id      = play.GetTypeId();
     magicinfo.magicid = (ushort)info.magicid;
     magicinfo.level   = info.level;
     magicinfo.exp     = info.exp;
     play.SendData(magicinfo.GetBuffer());
 }
Exemple #4
0
 public void AddMagicInfo(uint magidid, byte level, uint exp)
 {
     GameStruct.RoleMagicInfo magicinfo = new GameStruct.RoleMagicInfo();
     magicinfo.magicid = magidid;
     magicinfo.level = level;
     magicinfo.exp = exp;
     magicinfo.id = 0;
     mDicMagic[magidid] = magicinfo;
     SendMagicInfo(magicinfo);
     if (magidid == GameStruct.MagicTypeInfo.LIUXINGYUNHUO) mbLiuXingYunHuo = true;
 }
Exemple #5
0
 public void AddMagicInfo(GameBase.Network.Internal.MagicInfo info)
 {
     GameStruct.RoleMagicInfo magicinfo = new GameStruct.RoleMagicInfo();
     magicinfo.magicid            = info.magicid;
     magicinfo.level              = info.level;
     magicinfo.exp                = info.exp;
     magicinfo.id                 = info.id;
     mDicMagic[magicinfo.magicid] = magicinfo;
     if (magicinfo.magicid == GameStruct.MagicTypeInfo.LIUXINGYUNHUO)
     {
         mbLiuXingYunHuo = true;
     }
 }
Exemple #6
0
 public void AddMagicInfo(uint magidid, byte level, uint exp)
 {
     GameStruct.RoleMagicInfo magicinfo = new GameStruct.RoleMagicInfo();
     magicinfo.magicid  = magidid;
     magicinfo.level    = level;
     magicinfo.exp      = exp;
     magicinfo.id       = 0;
     mDicMagic[magidid] = magicinfo;
     SendMagicInfo(magicinfo);
     if (magidid == GameStruct.MagicTypeInfo.LIUXINGYUNHUO)
     {
         mbLiuXingYunHuo = true;
     }
 }