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 CreateComponent() { var msg = new InnerMsg() { Type = InnerMsgType.CREATE_COMPONENT }; 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 bool GetMsg(out InnerMsg msg) { return msgQueue.TryDequeue(out msg); }
static public bool GetMsg(out InnerMsg msg) { return(msgQueue.TryDequeue(out msg)); }