Ejemplo n.º 1
0
 public WadImageStream(WadEntry entry, WadPackage package)
 {
     _entry = entry;
     using (var br = new BinaryReader(package.File.Open()))
     {
         br.BaseStream.Position = entry.Offset;
         PrepareData(br);
     }
 }
Ejemplo n.º 2
0
 public WadPackageStreamSource(WadPackage package)
 {
     _stream  = package.File.Open();
     _entries = package.GetEntries().ToDictionary(x => x.Name, x => x, StringComparer.InvariantCultureIgnoreCase);
 }