Exemplo n.º 1
0
 public WadImageStream(WadEntry entry, WadPackage package)
 {
     _entry = entry;
     using (var br = new BinaryReader(package.OpenFile(package.PackageFile)))
     {
         br.BaseStream.Position = entry.Offset;
         PrepareData(br);
     }
 }
Exemplo n.º 2
0
 public WadImageStream(WadEntry entry, WadPackage package)
 {
     _entry = entry;
     using (var br = new BinaryReader(package.OpenFile(package.PackageFile)))
     {
         br.BaseStream.Position = entry.Offset;
         PrepareData(br);
     }
 }
Exemplo n.º 3
0
 public WadEntry(WadPackage package, string name, WadEntryType type, uint offset, byte compressionType, uint compressedLength, uint fullLength)
 {
     Package          = package;
     Name             = name;
     Offset           = offset;
     CompressionType  = compressionType;
     CompressedLength = compressedLength;
     Length           = fullLength;
     Type             = type;
 }
Exemplo n.º 4
0
 public WadPackageStreamSource(WadPackage package)
 {
     _stream = package.OpenFile(package.PackageFile);
     _files = package.GetEntries().OfType<WadEntry>().ToDictionary(x => x.Name, x => x);
 }
Exemplo n.º 5
0
 public WadStream(WadPackage package)
 {
     Package = package;
     StreamSource = package.GetStreamSource();
 }
Exemplo n.º 6
0
 public WadPackageStreamSource(WadPackage package)
 {
     _stream = package.OpenFile(package.PackageFile);
     _files  = package.GetEntries().OfType <WadEntry>().ToDictionary(x => x.Name, x => x);
 }