void Recieve_STC_OpenRoom(ByteData _recieveBuffer) { User _user = UserDataManager.instance.user; _user.User_readyRoomInfo.isCloseRoom = _recieveBuffer.Getbool(); // 대기방룸 갱신 if (UI_Manager.Getsingleton.Dic_UILst.ContainsKey(UI.CUSTOMROOM)) { UI_CustomRoom.Getsingleton.set_refresh(); } }
void Recieve_STC_RoomInfo(ByteData _recieveBuffer) { User _user = UserDataManager.instance.user; // uint : 방장 UserID // byte : 맵 인덱스 // bool : (true : 비공개, false : 공개) // byte : 유저수 // uint : 방 유저 WebUserID // byte : 방 슬롯 위치 1~12 // string : 닉네임 // byte : 팀 (Red:0, Blue:1, Draw:2) // ushort : 클랜 마크 _user.User_readyRoomInfo.Init(); _user.User_readyRoomInfo.RoomMsterUserID = _recieveBuffer.Getuint(); _user.User_readyRoomInfo.MapIndex = _recieveBuffer.Getbyte(); _user.User_readyRoomInfo.isCloseRoom = _recieveBuffer.Getbool(); _user.User_readyRoomInfo.PersonCnt = _recieveBuffer.Getbyte(); byte[] _CtyCd = new byte[2]; _user.User_RoomUserInfos.Clear(); for (int i = 0; i < _user.User_readyRoomInfo.PersonCnt; i++) { User_RoomInfo roomUser = new User_RoomInfo(); roomUser.roomUserID = _recieveBuffer.Getuint(); roomUser.roomUserSlot = _recieveBuffer.Getbyte(); roomUser.roomUserNkNm = _recieveBuffer.Getstring(); roomUser.roomUserTeam = _recieveBuffer.Getbyte(); roomUser.roomUserClanMark = _recieveBuffer.Getushort(); _CtyCd[0] = _recieveBuffer.Getbyte(); _CtyCd[1] = _recieveBuffer.Getbyte(); roomUser.roomUserFlag = Encoding.UTF8.GetString(_CtyCd, 0, _CtyCd.Length); _user.User_RoomUserInfos[roomUser.roomUserID] = roomUser; } RecieveComplete_RoomInfo(); //MainMenuNetwork_State = MMSERVER_STATE.ROOM_INFO; }
void Recieve_STC_PopupMsg(ByteData _recieveBuffer) { //string : 공지 메세지 //bool : true(확인 터치시 어플종료), false(팝업만 띄움) string popupMsg = _recieveBuffer.Getstring(); bool isOut = _recieveBuffer.Getbool(); UI_Popup_Notice popup = UI_Manager.Getsingleton.CreatAndGetPopup <UI_Popup_Notice>(UIPOPUP.POPUPNOTICE); popup.transform.SetAsLastSibling(); popup.Set_PopupTitleMessage(TextDataManager.Dic_TranslateText[145]); //알림 popup.SetPopupMessage(popupMsg); if (isOut) { popup.Set_addEventButton(Application.Quit); } }