コード例 #1
0
 public ushort GetMagicLevel(uint typeid)
 {
     if (mDicMagic.ContainsKey(typeid))
     {
         GameStruct.RoleMagicInfo info = mDicMagic[typeid];
         return(info.level);
     }
     return(0);
 }
コード例 #2
0
ファイル: PlayerMagic.cs プロジェクト: dream-young-soul/soul
 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;
 }
コード例 #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());
 }
コード例 #4
0
ファイル: PlayerMagic.cs プロジェクト: dream-young-soul/soul
 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;
 }
コード例 #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;
     }
 }
コード例 #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;
     }
 }