protected sealed override void Decode(ByteStream stream) { for (int i = 0; i < 2; i++) { LogicArrayList <AllianceRankingEntry> allianceRankingList = this.AllianceRankingList[i]; for (int j = stream.ReadVInt(); j > 0; j--) { AllianceRankingEntry allianceRankingEntry = new AllianceRankingEntry(); allianceRankingEntry.Decode(stream); allianceRankingList.Add(allianceRankingEntry); } } for (int j = stream.ReadVInt(); j > 0; j--) { AvatarRankingEntry avatarRankingEntry = new AvatarRankingEntry(); avatarRankingEntry.Decode(stream); this.AvatarRankingList.Add(avatarRankingEntry); } for (int j = stream.ReadVInt(); j > 0; j--) { AvatarDuelRankingEntry avatarDuelRankingEntry = new AvatarDuelRankingEntry(); avatarDuelRankingEntry.Decode(stream); this.AvatarDuelRankingList.Add(avatarDuelRankingEntry); } }
/// <summary> /// Decodes this instance. /// </summary> public override void Decode() { this.Entries = new AllianceRankingEntry[this.Stream.ReadVInt()]; for (int i = 0; i < this.Entries.Length; i++) { AllianceRankingEntry Entry = new AllianceRankingEntry(); Entry.Decode(this.Stream); this.Entries[i] = Entry; } }