コード例 #1
0
    public void onGetAllRoomsDone(AllRoomsEvent eventObj)
    {
        if (eventObj.getResult() == 0)
        {
            string[] roomIds = eventObj.getRoomIds();

            if (roomIds == null)
            {
                RoomSelectionMenu.RoomCount = 0;
                RoomSelectionMenu.Activate();
            }
            else
            {
                RoomSelectionMenu.ActiveRooms = new List <LiveRoomInfoEvent>();
                foreach (string roomId in roomIds)
                {
                    WarpClient.GetInstance().GetLiveRoomInfo(roomId);
                }

                RoomSelectionMenu.RoomCount = roomIds.Length;
            }
        }
        else
        {
            RoomSelectionMenu.RoomCount = 0;
            RoomSelectionMenu.Activate();
        }
        Log("onGetAllRoomsDone : " + eventObj.getResult());
    }
コード例 #2
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Log ("onGetAllRoomsDone : " + eventObj.getResult());
     for(int i=0; i< eventObj.getRoomIds().Length; ++i)
     {
         Log ("Room ID : " + eventObj.getRoomIds()[i]);
     }
 }
コード例 #3
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     //Log ("onGetAllRoomsDone : " + eventObj.getResult());
     for (int i = 0; i < eventObj.getRoomIds().Length; ++i)
     {
         //Log ("Room ID : " + eventObj.getRoomIds()[i]);
     }
 }
コード例 #4
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            string[] roomIDs = eventObj.getRoomIds();

            foreach (string s in roomIDs)
            {
                Log("id : " + s);
            }
        }
コード例 #5
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            string[] roomIDs = eventObj.getRoomIds();

            foreach (string s in roomIDs)
            {
                Log("id : " + s);
                WarpClient.GetInstance().JoinRoom(s);
            }
        }
コード例 #6
0
    public void onGetAllRoomsDone(AllRoomsEvent eventObj)
    {
        Log("ongetallroomsdone : " + eventObj.getResult());
        if (eventObj.getResult() == WarpResponseResultCode.SUCCESS)
        {
//			if (eventObj.getRoomIds ().Length > 0) {
//				foreach (string roomId in eventObj.getRoomIds()) {
//					WarpClient.GetInstance ().GetLiveRoomInfo (roomId);
//				}
//				//WarpClient.GetInstance().SubscribeRoom("1170889653");
//			}
        }
    }
コード例 #7
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            if (eventObj.getResult() == 0)
            {
                Debug.Log("onGetAllRoomsDone : " + eventObj.getRoomIds().Length);
                if (eventObj.getRoomIds().Length > 0)
                {
                    foreach (string roomId in eventObj.getRoomIds())
                    {
//						WarpClient.GetInstance ().GetLiveRoomInfo (roomId);
                    }
                    //WarpClient.GetInstance().SubscribeRoom("1170889653");
                }
            }
        }
コード例 #8
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
 }
コード例 #9
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Log ("onGetAllRoomsDone : " + eventObj.getResult());
 }
コード例 #10
0
 ////////////////////////////////////// Zone Request Listener \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     throw new NotImplementedException();
 }
コード例 #11
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Debug.Log ("onGetAllRoomsDone : " + eventObj.getResult());
     string[] rooms = eventObj.getRoomIds ();
     string strRooms="";
     if (rooms != null && rooms.Length != 0) {
         foreach (string room in rooms) {
             Debug.Log ("room " + room);
             strRooms+=room+",";
         }
     }
     appWarpResponse+="onGetAllRoomsDone Rooms "+strRooms+"\n";
 }
コード例 #12
0
ファイル: ZoneReqListener.cs プロジェクト: Katry4/WinRepo
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            int _length = eventObj.getRoomIds().Length;
            _page.showResult("rooms are " + _length);

            string[] Str = new string[_length];
            
            //public byte eventObj.getResult();  
            //public String[] s =  eventObj.getRoomIds(); 
            for (int j = 0; j < _length; j++)
            {
                Str[j] = eventObj.getRoomIds()[j];
                //Deployment.Current.Dispatcher.BeginInvoke(() =>
                //{
                //    HyperlinkButton b = new HyperlinkButton();
                //    b.Content = Str[j];
                //    b.Click += new RoutedEventHandler(_page.b_Click);
                //    _page.list.Add(b);
                //});
                //HyperlinkButton b = new HyperlinkButton();
                //b.Content = Str[j];
                //b.Click += new RoutedEventHandler(_page.b_Click);
                //RoomsListPage.list.Add(b);
            }
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                _page.createRoomsList(Str); //викликаємо процедуру створення списку кімеат
            });
            //for (int i = 0; i < _length; i++)
            //{
            //    //Str[i] = eventObj.getRoomIds()[i];
            //    Deployment.Current.Dispatcher.BeginInvoke(() =>
            //    {
            //            HyperlinkButton b = new HyperlinkButton();
            //            b.Content = Str[i];
            //            b.Click += new RoutedEventHandler(_page.b_Click);
            //            list.Add(b);
            //    });
            //    //event.getRoomIds()[i]
            //}

            //foreach (string s in Str)
            //{
            //    //WarpClient.GetInstance().GetLiveRoomInfo(s);
            //    Deployment.Current.Dispatcher.BeginInvoke(() =>
            //    {
            //        HyperlinkButton b = new HyperlinkButton();
            //        b.Content = s;
            //        b.Click += new RoutedEventHandler(_page.b_Click);
            //        list.Add(b);
            //    });


            //}

            //Deployment.Current.Dispatcher.BeginInvoke(() =>
            //{
            //    _page.listBox1.ItemsSource = list;
            //});

            
        }
コード例 #13
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            string[] roomIds = eventObj.getRoomIds();

            Player p = Listener as Player;
        }
コード例 #14
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Log("onGetAllRoomsDone : " + eventObj.getResult());
 }
コード例 #15
0
 /// Invoked when a response for GetAllRooms request is receieved.
 /// <param name="eventObj"></param>
 public void onGetAllRoomsDone(AllRoomsEvent eventObj) { ; }
コード例 #16
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     //Twist.AppController.showToast ("onGetAllRoomsDone");
 }
コード例 #17
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            int _length = eventObj.getRoomIds().Length;

            _page.showResult("rooms are " + _length);

            string[] Str = new string[_length];

            //public byte eventObj.getResult();
            //public String[] s =  eventObj.getRoomIds();
            for (int j = 0; j < _length; j++)
            {
                Str[j] = eventObj.getRoomIds()[j];
                //Deployment.Current.Dispatcher.BeginInvoke(() =>
                //{
                //    HyperlinkButton b = new HyperlinkButton();
                //    b.Content = Str[j];
                //    b.Click += new RoutedEventHandler(_page.b_Click);
                //    _page.list.Add(b);
                //});
                //HyperlinkButton b = new HyperlinkButton();
                //b.Content = Str[j];
                //b.Click += new RoutedEventHandler(_page.b_Click);
                //RoomsListPage.list.Add(b);
            }
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                _page.createRoomsList(Str); //викликаємо процедуру створення списку кімеат
            });
            //for (int i = 0; i < _length; i++)
            //{
            //    //Str[i] = eventObj.getRoomIds()[i];
            //    Deployment.Current.Dispatcher.BeginInvoke(() =>
            //    {
            //            HyperlinkButton b = new HyperlinkButton();
            //            b.Content = Str[i];
            //            b.Click += new RoutedEventHandler(_page.b_Click);
            //            list.Add(b);
            //    });
            //    //event.getRoomIds()[i]
            //}

            //foreach (string s in Str)
            //{
            //    //WarpClient.GetInstance().GetLiveRoomInfo(s);
            //    Deployment.Current.Dispatcher.BeginInvoke(() =>
            //    {
            //        HyperlinkButton b = new HyperlinkButton();
            //        b.Content = s;
            //        b.Click += new RoutedEventHandler(_page.b_Click);
            //        list.Add(b);
            //    });


            //}

            //Deployment.Current.Dispatcher.BeginInvoke(() =>
            //{
            //    _page.listBox1.ItemsSource = list;
            //});
        }