コード例 #1
0
 public void onGetAllRoomsDone(AllRoomsEvent eventObj)
 {
     Debug.Log("onGetAllRoomsDone : " + eventObj.getResult());
     for (int i = 0; i < eventObj.getRoomIds().Length; ++i)
     {
         Debug.Log("Room ID : " + eventObj.getRoomIds()[i]);
     }
 }
コード例 #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)
        {
            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");
                }
            }
        }
コード例 #4
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());
    }
コード例 #5
0
        public void onGetAllRoomsDone(AllRoomsEvent eventObj)
        {
            string[] roomIDs = eventObj.getRoomIds();

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

            foreach (string s in roomIDs)
            {
                Log("id : " + s);
                WarpClient.GetInstance().JoinRoom(s);
            }
        }
コード例 #7
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;
            //});

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

            Player p = Listener as Player;
        }
コード例 #9
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;
            //});
        }
コード例 #10
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";
 }