Ejemplo n.º 1
0
 public TesRecordWorldspaceMain(TesFileReader fr) : base(fr, false)
 {
     while (!fr.EOF)
     {
         string id = fr.GetTypeID();
         if (id.Equals("CELL"))
         {
             Cell = new TesRecordCell(fr.GetCell());
             OutputItems.Add(Cell);
         }
         else if (id.Equals("GRUP"))
         {
             if (Blocks == null)
             {
                 Blocks = new TesList <TesCellBlock>();
                 OutputItems.Add(Blocks);
             }
             Blocks.Add(new TesCellBlock(fr.GetGroup()));
         }
         else
         {
             throw new Exception();
         }
     }
 }