Example #1
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_SelectorID = DataIn.GetUInt();
            m_PartnerID  = DataIn.GetUInt();

            return(true);
        }
Example #2
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_nRoleID = DataIn.GetUInt();
            m_nRate   = DataIn.GetByte();

            return(true);
        }
Example #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);
            }
        }
Example #4
0
 public override bool doDecode(NetReadBuffer DataIn)
 {
     m_EventType = DataIn.GetByte();
     m_RoleID    = DataIn.GetUInt();
     m_Exp       = DataIn.GetInt();
     return(true);
 }
Example #5
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);
            }
        }
Example #6
0
 public override bool doDecode(NetReadBuffer DataIn)
 {
     m_nMark      = DataIn.GetUInt();
     m_nSpecial   = DataIn.GetInt();
     m_nRound     = DataIn.GetByte();
     m_nDancerPos = DataIn.GetByte();
     return(true);
 }
Example #7
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_nRoleRoomType  = DataIn.GetByte();
            m_nRoleRoomPos   = DataIn.GetByte();
            m_nRoleRoomState = DataIn.GetByte();

            return(true);
        }
Example #8
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_strRoomName = DataIn.GetPerfixString();
            m_strRoomPwd  = DataIn.GetPerfixString();
            m_bHasPwd     = DataIn.GetBool();

            return(true);
        }
Example #9
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            nResult     = DataIn.GetInt();
            m_strRecTag = DataIn.GetPerfixString();
            m_strError  = DataIn.GetPerfixString();

            return(true);
        }
Example #10
0
 public override bool doDecode(NetReadBuffer DataIn)
 {
     if (DataIn != null)
     {
         m_strError = DataIn.GetPerfixString();
     }
     return(true);
 }
Example #11
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();
 }
Example #12
0
        //public void setMsgType( ushort value)
        //{
        //    m_nMsgType = value;
        //}

        public bool decodeMessage(NetReadBuffer DataIn)
        {
            //m_strError = DataIn.GetPerfixString() ;
            if (doDecode(DataIn))
            {
                return(true);
                //DataIn.Postion = DataIn.Postion + nSize - m_nMsgType ;
            }
            return(false);
        }
Example #13
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            if (base.doDecode(DataIn))
            {
                m_nHaveEquiped = (byte)DataIn.GetByte();
                m_EffectId     = DataIn.GetUInt();
                return(true);
            }

            return(false);
        }
Example #14
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);
 }
Example #15
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);
        }
Example #16
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);
        }
Example #17
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_RoomInfo.doDecode(DataIn);

            m_nPlayScene  = DataIn.GetByte();
            m_nPlayMusic  = DataIn.GetShort();
            m_nPlayMode   = DataIn.GetByte();
            m_strCheckKey = DataIn.GetPerfixString();
            m_szStage     = DataIn.GetFixLenBytes();

            return(true);
        }
Example #18
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);
        }
Example #19
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);
        }
Example #20
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);
            }
        }
Example #21
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();
        }
Example #22
0
        public override bool doDecode(NetReadBuffer DataIn)
        {
            m_nOldHostType  = DataIn.GetByte();
            m_nOldHostPos   = DataIn.GetByte();
            m_nOldHostState = DataIn.GetByte();

            m_nNewHostType  = DataIn.GetByte();
            m_nNewHostPos   = DataIn.GetByte();
            m_nNewHostState = DataIn.GetByte();

            m_strRoomPwd = DataIn.GetPerfixString();

            return(true);
        }
Example #23
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);
        }
Example #24
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);
        }
Example #25
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);
        }
Example #26
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();
            }
        }
Example #27
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);
        }
Example #28
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);
        }
Example #29
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);
        }
Example #30
0
 public override bool doDecode(NetReadBuffer DataIn)
 {
     return(true);
 }