public override void Decode()
        {
            base.Decode();

            int count = this.m_stream.ReadInt();

            if (count > -1)
            {
                this.m_allianceRankingList = new LogicArrayList <AllianceRankingEntry>(count);

                for (int i = 0; i < count; i++)
                {
                    AllianceRankingEntry allianceRankingEntry = new AllianceRankingEntry();
                    allianceRankingEntry.Decode(this.m_stream);
                    this.m_allianceRankingList.Add(allianceRankingEntry);
                }
            }

            this.m_nextEndTimeSeconds = this.m_stream.ReadInt();
            this.m_diamondPrizes      = new LogicArrayList <int>();

            for (int i = 0, size = this.m_stream.ReadInt(); i < size; i++)
            {
                this.m_diamondPrizes.Add(this.m_stream.ReadInt());
            }

            this.m_villageType = this.m_stream.ReadInt();
        }
Ejemplo n.º 2
0
        public override void Decode()
        {
            base.Decode();

            int count = this.m_stream.ReadInt();

            if (count > -1)
            {
                this.m_allianceRankingList = new LogicArrayList <AllianceRankingEntry>(count);

                for (int i = 0; i < count; i++)
                {
                    AllianceRankingEntry allianceRankingEntry = new AllianceRankingEntry();
                    allianceRankingEntry.Decode(this.m_stream);
                    this.m_allianceRankingList.Add(allianceRankingEntry);
                }
            }

            this.m_villageType = this.m_stream.ReadInt();
        }