public AllianceHeaderEntry RemoveAllianceHeaderEntry()
        {
            AllianceHeaderEntry tmp = this.m_headerEntry;

            this.m_headerEntry = null;
            return(tmp);
        }
コード例 #2
0
        public void Decode(ByteStream stream)
        {
            this.m_allianceHeaderEntry = new AllianceHeaderEntry();
            this.m_allianceHeaderEntry.Decode(stream);
            this.m_description = stream.ReadString(900000);

            stream.ReadInt();

            if (stream.ReadBoolean())
            {
                stream.ReadLong();
            }

            stream.ReadInt();

            if (stream.ReadBoolean())
            {
                stream.ReadLong();
            }

            int memberCount = stream.ReadInt();

            if (memberCount >= 0)
            {
                Debugger.DoAssert(memberCount < 51, "Too many members in the alliance");

                this.m_allianceMemberList = new LogicArrayList <AllianceMemberEntry>();
                this.m_allianceMemberList.EnsureCapacity(memberCount);

                int idx = 0;

                do
                {
                    AllianceMemberEntry allianceMemberEntry = new AllianceMemberEntry();
                    allianceMemberEntry.Decode(stream);
                    this.m_allianceMemberList.Add(allianceMemberEntry);
                } while (++idx != memberCount);
            }

            stream.ReadInt();
            stream.ReadInt();
        }
        public override void Decode()
        {
            base.Decode();

            this.m_description = this.m_stream.ReadString(1000);
            this.m_stream.ReadInt();
            this.m_stream.ReadInt();

            if (this.m_stream.ReadBoolean())
            {
                this.m_currentWarId = this.m_stream.ReadLong();
            }

            this.m_stream.ReadInt();

            if (this.m_stream.ReadBoolean())
            {
                this.m_stream.ReadLong();
            }

            this.m_headerEntry = new AllianceHeaderEntry();
            this.m_headerEntry.Decode(this.m_stream);
        }
コード例 #4
0
        public override void Decode()
        {
            base.Decode();
            this.m_searchString = this.m_stream.ReadString(900000);

            int arraySize = this.m_stream.ReadInt();

            if (arraySize <= 10000)
            {
                if (arraySize > -1)
                {
                    this.m_allianceList = new LogicArrayList <AllianceHeaderEntry>(arraySize);

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

            int array2Size = this.m_stream.ReadInt();

            if (array2Size <= 10000)
            {
                if (array2Size > -1)
                {
                    this.m_bookmarkList = new LogicArrayList <LogicLong>(array2Size);

                    for (int i = 0; i < array2Size; i++)
                    {
                        this.m_bookmarkList.Add(this.m_stream.ReadLong());
                    }
                }
            }
        }
コード例 #5
0
 public void SetAllianceHeaderEntry(AllianceHeaderEntry entry)
 {
     this.m_allianceHeaderEntry = entry;
 }
 public override void Destruct()
 {
     base.Destruct();
     this.m_headerEntry = null;
 }