public void ReadPacket(PacketReader reader)
        {
            LeagueMemberList  = new List <LeagueMember>();
            SeasonEndsSeconds = reader.ReadInt32();
            var count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                LeagueMember leagueMember = new LeagueMember();
                leagueMember.UserID      = reader.ReadInt64();
                leagueMember.Username    = reader.ReadString();
                leagueMember.Rank        = reader.ReadInt32();
                leagueMember.Trophies    = reader.ReadInt32();
                leagueMember.LastRank    = reader.ReadInt32();
                leagueMember.Unknown3    = reader.ReadInt32();
                leagueMember.AttacksWon  = reader.ReadInt32();
                leagueMember.Unknown5    = reader.ReadInt32();
                leagueMember.DefensesWon = reader.ReadInt32();
                leagueMember.Unknown7    = reader.ReadInt32();
                leagueMember.Unknown8    = reader.ReadInt32();
                leagueMember.Unknown9    = reader.ReadInt32();
                leagueMember.Unknown10   = reader.ReadInt32();
                leagueMember.Unknown11   = reader.ReadInt32();
                leagueMember.HasClan     = reader.ReadBoolean();
                if (leagueMember.HasClan)
                {
                    leagueMember.ClanID    = reader.ReadInt64();
                    leagueMember.ClanName  = reader.ReadString();
                    leagueMember.Unknown12 = reader.ReadInt32();
                }
                leagueMember.Unknown13 = reader.ReadInt32();
                leagueMember.Unknown14 = reader.ReadInt32();
                LeagueMemberList.Add(leagueMember);
            }
        }
 public void ReadPacket(PacketReader reader)
 {
     LeagueMemberList = new List<LeagueMember>();
     SeasonEndsSeconds = reader.ReadInt32();
     var count = reader.ReadInt32();
     for (int i = 0; i < count; i++)
     {
         LeagueMember leagueMember = new LeagueMember();
         leagueMember.UserID = reader.ReadInt64();
         leagueMember.Username = reader.ReadString();
         leagueMember.Rank = reader.ReadInt32();
         leagueMember.Trophies = reader.ReadInt32();
         leagueMember.LastRank = reader.ReadInt32();
         leagueMember.Unknown3 = reader.ReadInt32();
         leagueMember.AttacksWon = reader.ReadInt32();
         leagueMember.Unknown5 = reader.ReadInt32();
         leagueMember.DefensesWon = reader.ReadInt32();
         leagueMember.Unknown7 = reader.ReadInt32();
         leagueMember.Unknown8 = reader.ReadInt32();
         leagueMember.Unknown9 = reader.ReadInt32();
         leagueMember.Unknown10 = reader.ReadInt32();
         leagueMember.Unknown11 = reader.ReadInt32();
         leagueMember.HasClan = reader.ReadBoolean();
         if (leagueMember.HasClan)
         {
             leagueMember.ClanID = reader.ReadInt64();
             leagueMember.ClanName = reader.ReadString();
             leagueMember.Unknown12 = reader.ReadInt32();
         }
         leagueMember.Unknown13 = reader.ReadInt32();
         leagueMember.Unknown14 = reader.ReadInt32();
         LeagueMemberList.Add(leagueMember);
     }
 }