Exemple #1
0
        private void OnCreateChatChannel(UserLogicModel user, CreateChatRoomRequest data)
        {
            var cur = getRoomFromUser(user);
            if (cur != null)
                leaveChatRoom(user);
            myDataManager.SiteData.Room_SetChatServer(data.Room,
                                                      myServerManager.ChatServerIndex,
                                                      (r) => {
                                                          myDataManager.ChatData.CreateChatChannel(data.Room.ChatChannel,
                                                                                                   user,
                                                                                                   a => {
                                                                                                       myServerManager.RegisterChatServer(user);

                                                                                                       runningRooms.Add(a);
                                                                                                       myServerManager.SendChatInfo(user, a);
                                                                                                   });
                                                      });
        }
 public void CreateChatRoom(UserLogicModel user, CreateChatRoomRequest roomRequest)
 {
     qManager.SendMessage("ChatServer", "Area.Chat.CreateChatRoom", user, roomRequest);
 }