void Recieve_STC_InviteRoom(ByteData _recieveBuffer) { User _user = UserDataManager.instance.user; _user.User_RcvRoomInvite.Init(); //초대 받기 //uint : 초대자 UserID //string : 초대자 닉네임 //_user.User_RcvRoomInvite.InviterUserID = _recieveBuffer.Getuint(); //_user.User_RcvRoomInvite.InviterUserNkNm = _recieveBuffer.Getstring(); User_RoomInfo _Rcvinvite = new User_RoomInfo(); _Rcvinvite.InviterUserID = _recieveBuffer.Getuint(); _Rcvinvite.InviterUserNkNm = _recieveBuffer.Getstring(); //초대 정보 담기 _user.User_LstRcvRoomInvites.Add(_Rcvinvite); RecieveComplete_InviteRoom(); //MainMenuNetwork_State = MMSERVER_STATE.ROOM_INVITE; }
public void Set_roomSlot(User_RoomInfo _userRoominfo) { userRoomInfo = _userRoominfo; Chk_slotStateInfo(); Set_SlotInfo(); }
public void Clear_Slot() { userRoomInfo = null; SlotActive = false; image_back.color = DefineKey.White; SlotState = MemberSlot_State.Empty; IsMaster = false; }
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; }