public ushort GetMagicLevel(uint typeid) { if (mDicMagic.ContainsKey(typeid)) { GameStruct.RoleMagicInfo info = mDicMagic[typeid]; return(info.level); } return(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; }
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()); }
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; }
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; } }
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; } }