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_ChatMessage(ByteData _recieveBuffer) { User _user = UserDataManager.instance.user; _user.user_RecieveChat.Init(); //byte : 종류 (1:방 채팅) //uint : WebUserID 유저아이디 //ushort : 클랜 마크 //string : 닉네임 //string : 메세지 내용 _user.user_RecieveChat.msgTp = (ChatMessageType)_recieveBuffer.Getbyte(); _user.user_RecieveChat.UesrID = _recieveBuffer.Getuint(); _user.user_RecieveChat.ClanMark = _recieveBuffer.Getushort(); _user.user_RecieveChat.NkNm = _recieveBuffer.Getstring(); _user.user_RecieveChat.chatMsg = _recieveBuffer.Getstring(); ReciveComplete_Chatmessage(); //MainMenuNetwork_State = MMSERVER_STATE.CHAT_MESSAGE; }