Exemple #1
0
        public void SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_nextSendArenaPrizeTime = msgStream.ReadInt();
            m_ticketPrice            = msgStream.ReadUInt();
            m_rank                              = msgStream.ReadUInt();
            m_arenaTicketCount                  = msgStream.ReadUInt();
            m_dailyTicketPurchasedCount         = msgStream.ReadUInt();
            m_remaindPurchaseTicketCount        = msgStream.ReadUInt();
            m_chanllengeInterval                = msgStream.ReadInt();
            m_eraseChallengeColdDownDiamondCost = msgStream.ReadUInt();

            UInt16 recordsCount = msgStream.ReadUShort();

            for (Int32 i = 0; i < recordsCount; ++i)
            {
                CArenaChallengeRecord record = new CArenaChallengeRecord();
                record.SerializeFrom(msgStream);
                m_listChallengeRecords.Add(record);
            }

            UInt16 challengeesCount = msgStream.ReadUShort();

            for (Int32 i = 0; i < challengeesCount; ++i)
            {
                CArenaChallengeeData challengee = new CArenaChallengeeData();
                challengee.SerializeFrom(msgStream);
                m_listChallengees.Add(challengee);
            }
        }
Exemple #2
0
        protected override bool _SerializeFrom(UnityUtility.CStream msgStream)
        {
            UInt16 count = msgStream.ReadUShort();

            for (UInt32 i = 0; i < count; ++i)
            {
                CArenaChallengeeData challenge = new CArenaChallengeeData();
                challenge.SerializeFrom(msgStream);
                m_listChallengees.Add(challenge);
            }

            return(true);
        }