Beispiel #1
0
        public void doDecode_Challenge(NetReadBuffer DataIn)
        {
            m_nRoleID           = DataIn.GetUInt();
            m_strRoleName       = DataIn.GetPerfixString();
            m_bIsHost           = DataIn.GetBool();
            m_nRoleType         = DataIn.GetByte();
            m_bIsBoss           = DataIn.GetBool();
            m_nRolePos          = DataIn.GetByte();
            m_nRoleState        = DataIn.GetByte();
            m_nRoleSex          = DataIn.GetByte();
            m_nRoleSkin         = DataIn.GetByte();
            m_nDanceGroupPos    = DataIn.GetByte();
            m_strDanceGroup     = DataIn.GetPerfixString();
            m_nDanceGroupBadge  = DataIn.GetUShort();
            m_nDanceGroupEffect = DataIn.GetUShort();
            m_bIsVIP            = DataIn.GetBool();
            m_nVIPLevel         = DataIn.GetUShort();
            m_nMoveType         = DataIn.GetByte();
            m_nTransformId      = DataIn.GetUShort();
            m_nSkinCandyColor   = DataIn.GetUInt();

            byte[] itemBuf = DataIn.GetFixLenBytes();
            if (itemBuf != null)
            {
                m_ItemPacket = new NetReadBuffer(itemBuf);
            }

            byte[] geneBuf = DataIn.GetFixLenBytes();
            if (geneBuf != null)
            {
                m_GenePacket = new NetReadBuffer(geneBuf);
            }
        }
Beispiel #2
0
        public void doDecode(NetReadBuffer DataIn)
        {
            m_nRoomID                = DataIn.GetUInt();
            m_strRoomName            = DataIn.GetPerfixString();
            m_nRoomColor             = DataIn.GetByte();
            m_strRoomPwd             = DataIn.GetPerfixString();
            m_bHasPwd                = DataIn.GetBool();
            m_bIsHost                = DataIn.GetBool();
            m_nScene                 = DataIn.GetByte();
            m_nMusic                 = DataIn.GetShort();
            m_nMode                  = DataIn.GetByte();
            m_nRoomDanceMode         = DataIn.GetByte();
            m_ClothEffectTransformID = DataIn.GetUInt();

            for (int i = 0; i < CommonDef.MAX_ROOM_PLAYER; ++i)
            {
                m_szPosDancer[i] = DataIn.GetByte();
            }

            for (int i = 0; i < CommonDef.MAX_ROOM_AUDIENCE; ++i)
            {
                m_szPosAudience[i] = DataIn.GetByte();
            }

            ushort nDancerCount = DataIn.GetUShort();

            for (int i = 0; i < nDancerCount; ++i)
            {
                RoomPlayerInfo playerInfo = new RoomPlayerInfo();
                playerInfo.doDecode(DataIn);

                m_lstDancer.Add(playerInfo);
            }
        }
Beispiel #3
0
        public void doDecode(NetReadBuffer DataIn)
        {
            m_nRoomID       = DataIn.GetUInt();
            m_strRoomName   = DataIn.GetPerfixString();
            m_bHasPwd       = DataIn.GetBool();
            m_bHasStart     = DataIn.GetBool();
            m_nModeID       = DataIn.GetByte();
            m_nDifficulty   = DataIn.GetByte();
            m_nRoomColor    = DataIn.GetByte();
            m_nRoomCapacity = DataIn.GetByte();
            m_bTop          = DataIn.GetBool();

            for (int i = 0; i < m_szPlayerSex.Length; ++i)
            {
                m_szPlayerSex[i] = DataIn.GetByte();
            }
        }
Beispiel #4
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_strRoomName = DataIn.GetPerfixString();
            m_strRoomPwd  = DataIn.GetPerfixString();
            m_bHasPwd     = DataIn.GetBool();

            return(true);
        }
Beispiel #5
0
 public void doDecode(NetReadBuffer DataIn)
 {
     m_nRoleID     = DataIn.GetUInt();
     m_strRoleName = DataIn.GetPerfixString();
     m_nRoleLevel  = DataIn.GetByte();
     m_nRoleSex    = DataIn.GetByte();
     m_bIsVIP      = DataIn.GetBool();
     m_nVIPLevel   = DataIn.GetUShort();
 }
Beispiel #6
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_nRoomType      = DataIn.GetByte();
            m_nRoomID        = DataIn.GetUInt();
            m_nSongMode      = DataIn.GetByte();
            m_chDifficulty   = DataIn.GetByte();
            m_nInviterId     = DataIn.GetUInt();
            m_strInviterName = DataIn.GetPerfixString();
            m_bIsVIP         = DataIn.GetBool();
            m_nVIPLevel      = DataIn.GetUShort();

            return(true);
        }
Beispiel #7
0
        public void doDecode(NetReadBuffer DataIn)
        {
            m_HeartBeatTeam   = DataIn.GetByte();
            m_SelectEachOther = DataIn.GetBool();

            ushort count = DataIn.GetUShort();

            for (int i = 0; i < count; ++i)
            {
                uint id = DataIn.GetUInt();
                m_TeamMember.Add(id);
            }
        }
Beispiel #8
0
        public void SerializeAttr(NetReadBuffer wholeInfo)
        {
            m_nRoleID     = wholeInfo.GetUInt();
            m_strRoleName = wholeInfo.GetPerfixString();

            Sex_Type sexType = (Sex_Type)wholeInfo.GetByte();

            m_bIsBoy = (sexType == Sex_Type.Male ? true : false);

            m_nMoney = wholeInfo.GetUInt();
            m_nExp   = wholeInfo.GetUInt();
            m_nLev   = wholeInfo.GetUShort();
            m_nHot   = wholeInfo.GetUInt();

            m_strBirthday = wholeInfo.GetPerfixString();

            m_nConstellation = wholeInfo.GetByte();
            m_strSignature   = wholeInfo.GetPerfixString();

            m_nSkinColor = wholeInfo.GetByte();

            ///m_nTitleID = DataIn.GetUInt();
            m_nPrestige = wholeInfo.GetUInt();

            for (int i = 0; i < (int)CommonDef.BAG_MAX_ITEMTYPE; i++)
            {
                m_anBeiBaoKuozhan[i] = wholeInfo.GetByte();
            }
            m_nBadgeGridNum = wholeInfo.GetByte();
            m_nPt           = wholeInfo.GetUInt();
            m_nPtTotal      = wholeInfo.GetUInt();
            m_nPtBind       = wholeInfo.GetUInt();
            m_nChange       = wholeInfo.GetUInt();

            m_nRoleCreateTime = wholeInfo.GetUInt();

            m_bCompleteTeachGuide = wholeInfo.GetBool();
            m_bCompleteDanceAni   = wholeInfo.GetBool();

            m_nGuideData = wholeInfo.GetUInt();

            m_nCurLineID        = wholeInfo.GetInt();
            m_strCurLineName    = wholeInfo.GetPerfixString();
            m_bEnableAudition   = wholeInfo.GetBool();
            m_bHasFirstReCharge = wholeInfo.GetBool();
            m_TransformID       = wholeInfo.GetInt();

            m_IsCanChangeXingzuo = wholeInfo.GetBool();
            // 时尚值需要执行通知其他数据
            m_bMagicArrayNew = wholeInfo.GetBool();
        }
Beispiel #9
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            ushort nCount = DataIn.GetUShort();

            for (int i = 0; i < nCount; i++)
            {
                byte[] buffer = DataIn.GetFixLenBytes();
                if (buffer != null)
                {
                    string PartName = DataIn.GetPerfixString();
                    m_RolePacketDatas.Add(PartName, new NetReadBuffer(buffer));
                }
            }

            // fufeng add: extra info
            byte[] boardBuf = DataIn.GetFixLenBytes();
            if (boardBuf != null)
            {
                string boardName = DataIn.GetPerfixString();
                m_RolePacketDatas.Add(boardName, new NetReadBuffer(boardBuf));
            }

            //music list info
            byte[] musicsBuf = DataIn.GetFixLenBytes();
            if (musicsBuf != null)
            {
                string musicsName = DataIn.GetPerfixString();
                m_RolePacketDatas.Add(musicsName, new NetReadBuffer(musicsBuf));
            }

            byte[] systemSettingBuf = DataIn.GetFixLenBytes();
            if (systemSettingBuf != null)
            {
                string systemName = DataIn.GetPerfixString();
                m_RolePacketDatas.Add(systemName, new NetReadBuffer(systemSettingBuf));
            }

            // mall data
            //byte[] mallDataBuff = DataIn.GetFixLenBytes();
            //if (mallDataBuff != null)
            //{
            //    string mallName = DataIn.GetPerfixString();
            //    m_RolePacketDatas.Add(mallName, new NetReadBuffer(mallDataBuff));
            //}

            // mall commend
            byte[] mallCommendBuff = DataIn.GetFixLenBytes();
            if (mallCommendBuff != null)
            {
                string mallCommendName = DataIn.GetPerfixString();
                m_RolePacketDatas.Add(mallCommendName, new NetReadBuffer(mallCommendBuff));
            }

            byte[] festivalConfigBuf = DataIn.GetFixLenBytes();
            if (festivalConfigBuf != null)
            {
                string festivalName = DataIn.GetPerfixString();
                m_RolePacketDatas.Add(festivalName, new NetReadBuffer(festivalConfigBuf));
            }

            //fufeng new todo: use two msg for the differences
            //非点点乐平台设置Payment
            m_strPayment = DataIn.GetUTF8String();

            m_bSwitchLine = DataIn.GetBool();
            return(true);
        }
Beispiel #10
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_RechargeBlacklist = DataIn.GetBool();

            return(true);
        }