Ejemplo n.º 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);
                                                                                                   });
                                                      });
        }
Ejemplo n.º 2
0
 public void CreateChatRoom(UserLogicModel user, CreateChatRoomRequest roomRequest)
 {
     qManager.SendMessage("ChatServer", "Area.Chat.CreateChatRoom", user, roomRequest);
 }