Exemple #1
0
 public void ReadFromFile(string filePath)
 {
     Resources.Clear();
     using (FileStream fs = new FileStream(filePath, FileMode.Open))
     {
         using (BinaryReader reader = new BinaryReader(fs))
         {
             Palette_15Bit currentPalette = new Palette_15Bit();
             while (fs.Position < fs.Length)
             {
                 long            p   = fs.Position;
                 ResourceElement rex = new ResourceElement();
                 rex.Read(reader, ref currentPalette);
                 Resources.Add(rex);
             }
         }
     }
 }