Example #1
0
 private static void ReadTable(BinaryReader br, CaptureRewardGroup g)
 {
     for (int i = 0; i < g.EntryCount; i++)
     {
         g.Entries.Add(ReadEntry(br));
     }
 }
Example #2
0
 private void ReadHeader(BinaryReader br)
 {
     while (true)
     {
         var count = br.ReadInt32();
         if (Table.Count != 0 && Table[Table.Count - 1].CaptureCount > count)
         {
             br.BaseStream.Position -= 4;
             break;
         }
         var entries = br.ReadInt32();
         var group   = new CaptureRewardGroup(count, entries);
         Table.Add(group);
     }
 }