// Token: 0x06002C00 RID: 11264 RVA: 0x0012E554 File Offset: 0x0012C754
        public void Msg_Pertinence(NetHost netHost, string name, string msg)
        {
            if (netHost == NetGame.instance.local)
            {
                NetChat.Print(name);
                return;
            }
            NetStream netStream = NetGame.BeginMessage(NetMsgId.Chat);

            try
            {
                netStream.WriteNetId(netHost.hostId);
                netStream.Write(name);
                netStream.Write(msg);
                if (NetGame.isServer)
                {
                    NetGame.instance.SendReliable(netHost, netStream);
                }
            }
            finally
            {
                if (netStream != null)
                {
                    netStream = netStream.Release();
                }
            }
        }
 private void Remove_Local_Player(string txt)
 {
     if (string.IsNullOrEmpty(txt))
     {
         for (int i = NetGame.instance.local.players.Count - 2; i >= 0; i--)
         {
             NetGame.instance.RemoveLocalPlayer(NetGame.instance.local.players[i]);
         }
         NetChat.Print("正在全部删除!");
         return;
     }
     string[] array = txt.Split(new char[]
     {
         ' '
     }, StringSplitOptions.RemoveEmptyEntries);
     if (array.Length == 1)
     {
         int num = 0;
         if (int.TryParse(array[0], out num))
         {
             if (num > NetGame.instance.local.players.Count)
             {
                 NetChat.Print("超出本地玩家当前数量!当前玩家数量为" + NetGame.instance.local.players.Count.ToString());
                 return;
             }
             MenuCameraEffects.instance.RemoveHuman(NetGame.instance.local.players[num - 1]);
             NetGame.instance.RemoveLocalPlayer(NetGame.instance.local.players[num - 1]);
             NetChat.Print(string.Format("当前玩家{0}人,正在发送删除消息!", NetGame.instance.local.players.Count));
         }
     }
 }
 public void Add_Local_Player(string txt)
 {
     if (!string.IsNullOrEmpty(txt))
     {
         string[] array = txt.Split(new char[]
         {
             ' '
         }, StringSplitOptions.RemoveEmptyEntries);
         if (array.Length != 1)
         {
             NetChat.Print("格式错误!");
             return;
         }
         int num = 0;
         if (!int.TryParse(array[0], out num))
         {
             NetChat.Print("格式错误!");
             return;
         }
         for (int i = 0; i < num; i++)
         {
             NetGame.instance.AddLocalPlayer();
         }
         Shell.Print(string.Format("已发送{0}个添加模型信息!\n当前本地玩家数量为{1}", num, NetGame.instance.local.players.Count));
         this.FangJianTiShi(string.Format("玩家{0}发动秘技分身术,尝试召唤{1}个分身!!!", NetGame.instance.local.name, num));
     }
 }
 private void LobbyGuns()
 {
     lobbyGuns = !lobbyGuns;
     if (lobbyGuns)
     {
         string str = ScriptLocalization.Get("XTRA/gunsOn");
         NetChat.Print(str);
     }
     else
     {
         string str2 = ScriptLocalization.Get("XTRA/gunsOff");
         NetChat.Print(str2);
     }
     PlayerPrefs.SetInt("lobbyGuns", lobbyGuns ? 1 : 0);
     SetValue(total, goal, lastGoal, prize);
 }