Beispiel #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();
         }
     }
 }
Beispiel #2
0
 public TesCellSubBlock(TesFileReader fr) : base(fr, false)
 {
     while (!fr.EOF)
     {
         Cells.Add(new TesRecordCell(fr.GetCell()));
     }
     OutputItems.Add(Cells);
 }
Beispiel #3
0
 public TesWorldspace(TesFileReader fr) : base(fr, false)
 {
     while (!fr.EOF)
     {
         Records.Add(new TesRecordWorldspace(fr.GetCell()));
     }
     OutputItems.Add(Records);
 }