public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_socialType);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_roomType);
            buf.set(m_bIsSuccess);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_preLoadType);
            buf.set(m_playerName);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_loginType);
            buf.set(m_bResult);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_loginType);
            buf.set(m_nChannelNumber);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_roomType);
            buf.set(m_roomNumber);
            buf.set(m_nRoomTime);
            buf.set(m_password);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_loginType);
            buf.set(m_accountID);
            buf.set(m_accountPW);
            buf.set(m_nickname);
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_loginType);
            buf.set(m_bFlag);
            if (m_bFlag)
            {
                buf.set(m_nickname);
            }
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_socialType);
            buf.set(m_size);
            foreach (string name in m_names)
            {
                buf.set(name);
            }
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_roomType);
            buf.set(m_success);
            if (m_success)
            {
                buf.set(m_roomNumber);
            }
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_roomType);
            buf.set(m_listCount);
            for (int i = 0; i < m_listCount; ++i)
            {
                buf.set(m_roomList[i].m_number);
                buf.set(m_roomList[i].m_nCreateTime);
                buf.set(m_roomList[i].m_playerCount);
                buf.set(m_roomList[i].m_maxPlayerCount);
                buf.set(m_roomList[i].m_bIsStart);
                buf.set(m_roomList[i].m_password);
                buf.set(m_roomList[i].m_roomName);
            }
            return(buf);
        }
        public override C_Buffer serialize()
        {
            C_Buffer buf = new C_Buffer();

            buf.set((byte)m_basicType);
            buf.set((byte)m_roomType);
            buf.set(m_listCount);

            foreach (S_RoomUserInfo info in m_userList)
            {
                buf.set(info.m_nSlotIndex);
                buf.set(info.m_bIsMaster);
                buf.set(info.m_userNickname);
                buf.set(info.m_nCharacterImageIndex);
                buf.set(info.m_bReadyState);
            }

            return(buf);
        }