コード例 #1
0
ファイル: WadImageStream.cs プロジェクト: silky/sledge
 public WadImageStream(WadEntry entry, WadPackage package)
 {
     _entry = entry;
     using (var br = new BinaryReader(package.OpenFile(package.PackageFile)))
     {
         br.BaseStream.Position = entry.Offset;
         PrepareData(br);
     }
 }
コード例 #2
0
ファイル: WadImageStream.cs プロジェクト: xbloke/sledge
 public WadImageStream(WadEntry entry, WadPackage package)
 {
     _entry = entry;
     using (var br = new BinaryReader(package.OpenFile(package.PackageFile)))
     {
         br.BaseStream.Position = entry.Offset;
         PrepareData(br);
     }
 }
コード例 #3
0
 public WadPackageStreamSource(WadPackage package)
 {
     _stream = package.OpenFile(package.PackageFile);
     _files = package.GetEntries().OfType<WadEntry>().ToDictionary(x => x.Name, x => x);
 }
コード例 #4
0
 public WadPackageStreamSource(WadPackage package)
 {
     _stream = package.OpenFile(package.PackageFile);
     _files  = package.GetEntries().OfType <WadEntry>().ToDictionary(x => x.Name, x => x);
 }