예제 #1
0
        /// <summary>
        /// Decodes this instance.
        /// </summary>
        public override void Decode()
        {
            this.Entries = new AllianceHeaderEntry[this.Stream.ReadVInt()];

            for (int i = 0; i < this.Entries.Length; i++)
            {
                AllianceHeaderEntry Entry = new AllianceHeaderEntry();
                Entry.Decode(this.Stream);
                this.Entries[i] = Entry;
            }
        }
        public override void Decode()
        {
            base.Decode();

            int count = this.m_stream.ReadInt();

            if (count >= 0)
            {
                this.m_allianceList = new LogicArrayList <AllianceHeaderEntry>(count);

                for (int i = 0; i < count; i++)
                {
                    AllianceHeaderEntry headerEntry = new AllianceHeaderEntry();
                    headerEntry.Decode(this.m_stream);
                    this.m_allianceList.Add(headerEntry);
                }
            }
        }