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 override bool doDecode(NetReadBuffer DataIn)
        {
            m_nCurPage    = DataIn.GetUShort();
            m_nTotalCount = DataIn.GetUShort();
            m_nCurCount   = DataIn.GetUShort();

            for (int i = 0; i < m_nCurCount; ++i)
            {
                RoomBriefInfo roomItem = new RoomBriefInfo();
                roomItem.doDecode(DataIn);

                m_RoomInfoList.Add(roomItem);
            }

            return(true);
        }
Beispiel #3
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 #4
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 #5
0
 public virtual bool doDecode(NetReadBuffer DataIn)
 {
     if (DataIn != null)
     {
         m_nUseTimes = DataIn.GetShort();
         m_nCount    = DataIn.GetUShort();
         m_nMatune   = DataIn.GetInt();
         return(true);
     }
     return(false);
 }
Beispiel #6
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            ushort nCount = DataIn.GetUShort();

            for (int i = 0; i < nCount; i++)
            {
                byte currency = DataIn.GetByte();
                m_ListCurrency.Add(currency);
            }

            return(true);
        }
Beispiel #7
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_LoadingAD.Clear();
            ushort count = DataIn.GetUShort();

            for (int i = 0; i < count; ++i)
            {
                m_LoadingAD.Add(DataIn.GetPerfixString());
            }

            return(true);
        }
Beispiel #8
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 #9
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 #10
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            ushort count = DataIn.GetUShort();

            for (int i = 0; i < count; ++i)
            {
                HeartBeatMarkInfo info = new HeartBeatMarkInfo();
                info.doDecode(DataIn);
                m_HeartBeatMarkInfo.Add(info);
            }

            return(true);
        }
Beispiel #11
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 #12
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_nPlayerCount = DataIn.GetUShort();

            for (int i = 0; i < m_nPlayerCount; ++i)
            {
                InviteePlayerInfo playerItem = new InviteePlayerInfo();
                playerItem.doDecode(DataIn);

                m_InviteeInfoList.Add(playerItem);
            }

            return(true);
        }
Beispiel #13
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            for (int i = 0; i < CommonDef.MAX_ROOM_PLAYER; ++i)
            {
                m_szDancerPlace[i]    = DataIn.GetByte();
                m_szDancerGrade[i]    = DataIn.GetByte();
                m_szDancerMark[i]     = DataIn.GetUInt();
                m_szDancerExp[i]      = DataIn.GetUInt();
                m_szDancerPerfect[i]  = DataIn.GetInt();
                m_szDancerCool[i]     = DataIn.GetInt();
                m_szDancerGood[i]     = DataIn.GetInt();
                m_szDancerBad[i]      = DataIn.GetInt();
                m_szDancerMiss[i]     = DataIn.GetInt();
                m_szDancerSpecial[i]  = DataIn.GetInt();
                m_szDancerIntimacy[i] = DataIn.GetInt();
            }

            ushort count = DataIn.GetUShort();

            for (int i = 0; i < count; ++i)
            {
                RoleTeamMarkInfo teamMarkInfo = new RoleTeamMarkInfo();
                teamMarkInfo.doDecode(DataIn);
                m_szDanceTeamMark.Add(teamMarkInfo);
            }

            count = DataIn.GetUShort();
            for (int i = 0; i < count; ++i)
            {
                HeartBeatMarkInfo info = new HeartBeatMarkInfo();
                info.doDecode(DataIn);
                m_HeartBeatMarkInfo.Add(info);
            }

            return(true);
        }
Beispiel #14
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_RoomDanceMode = DataIn.GetByte();

            ushort count = DataIn.GetUShort();

            for (int i = 0; i < count; ++i)
            {
                RoleRoomTeamInfo roleTeamInfo = new RoleRoomTeamInfo();
                roleTeamInfo.doDecode(DataIn);
                m_ListRoleRoomTeamInfo.Add(roleTeamInfo);
            }

            return(true);
        }
Beispiel #15
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_nQuitType     = DataIn.GetByte();
            m_nRoleRoomType = DataIn.GetByte();

            ushort nCount = DataIn.GetUShort();

            for (ushort i = 0; i < nCount; ++i)
            {
                m_lstRoleRoomPos.Add(DataIn.GetByte());
            }

            m_nHostRoomType  = DataIn.GetByte();
            m_nHostRoomPos   = DataIn.GetByte();
            m_nHostRoomState = DataIn.GetByte();
            m_strRoomPwd     = DataIn.GetPerfixString();

            return(true);
        }
Beispiel #16
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);
        }