Esempio n. 1
0
        private void btn_RoomEnter_Click(object sender, EventArgs e)
        {
            var requestPkt = new RoomEnterReqPacket();

            requestPkt.SetValue(textBoxRoomNumber.Text.ToInt32());

            PostSendPacket(PACKET_ID.REQ_ROOM_ENTER, requestPkt.ToBytes());
            DevLog.Write($"방 입장 요청:  {textBoxRoomNumber.Text} 번");
        }
        private void btn_RoomEnter_Click(object sender, EventArgs e)
        {
            var requestPkt = new RoomEnterReqPacket();

            requestPkt.RoomNumber = textBoxRoomNumber.Text.ToInt32();

            var bodyData = requestPkt.ToBytes();

            PostSendPacket(PACKET_ID.PACKET_ID_ROOM_ENTER_REQ, bodyData);
            DevLog.Write($"방 입장 요청:  {textBoxRoomNumber.Text} 번");
        }