public static void ServerStart(int ServerID, int Port)
        {
            var msg = new InnerMsg() { Type = InnerMsgType.SERVER_START };
            msg.Value1 = string.Format("{0}_{1}", ServerID, Port);

            msgQueue.Enqueue(msg);
        }
        public static void CurrentLobbyUserCount(short lobbyID, int count)
        {
            var msg = new InnerMsg()
            {
                Type = InnerMsgType.CURRENT_LOBBY_USER_COUNT
            };

            msg.Value1 = string.Format("{0}_{1}", lobbyID, count);
            msgQueue.Enqueue(msg);
        }
        public static void CurrentUserCount(int count)
        {
            var msg = new InnerMsg()
            {
                Type = InnerMsgType.CURRENT_CONNECT_COUNT
            };

            msg.Value1 = count.ToString();
            msgQueue.Enqueue(msg);
        }
        public static void ServerStart(int ServerID, int Port)
        {
            var msg = new InnerMsg()
            {
                Type = InnerMsgType.SERVER_START
            };

            msg.Value1 = string.Format("{0}_{1}", ServerID, Port);

            msgQueue.Enqueue(msg);
        }
 static public bool GetMsg(out InnerMsg msg)
 {
     return(msgQueue.TryDequeue(out msg));
 }
 public static bool GetMsg(out InnerMsg msg)
 {
     return msgQueue.TryDequeue(out msg);
 }
 public static void CurrentUserCount(int count)
 {
     var msg = new InnerMsg() { Type = InnerMsgType.CURRENT_CONNECT_COUNT };
     msg.Value1 = count.ToString();
     msgQueue.Enqueue(msg);
 }
 public static void CurrentLobbyUserCount(short lobbyID, int count)
 {
     var msg = new InnerMsg() { Type = InnerMsgType.CURRENT_LOBBY_USER_COUNT };
     msg.Value1 = string.Format("{0}_{1}", lobbyID, count);
     msgQueue.Enqueue(msg);
 }