예제 #1
0
 public void LoadFile(string fileName)
 {
     using (var br = new BinaryReader(File.OpenRead(fileName)))
     {
         Header  = new VDriveHeader(br);
         Entries = new List <VDriveMibEntry>();
         int i = 0;
         foreach (var item in Header.Offsets)
         {
             br.BaseStream.Seek(item, SeekOrigin.Begin);
             var tempEntry = new VDriveMibEntry(br);
             Entries.Add(tempEntry);
             tempEntry.InternalID = string.Format("{0}_({1})", tempEntry.Name, i);
             i++;
         }
     }
 }
예제 #2
0
 public VDriveMSBFile(string fileName)
 {
     Header = new VDriveHeader();
     Meshes = new List <VDriveMSBMeshEntry>();
     ReadData(fileName);
 }
예제 #3
0
 public VDriveMSBFile()
 {
     Header = new VDriveHeader();
     Meshes = new List <VDriveMSBMeshEntry>();
 }