Exemple #1
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);
        }
Exemple #2
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);
        }