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 void SetAllianceMemberEntry(AllianceMemberEntry value) { this.m_allianceMemberEntry = value; }
public override void Destruct() { base.Destruct(); this.m_allianceMemberEntry = null; }