Пример #1
0
 public void Read(AssetsFileReader reader)
 {
     dependencyCount = reader.ReadInt32();
     dependencies    = new List <AssetsFileDependency>();
     for (int i = 0; i < dependencyCount; i++)
     {
         AssetsFileDependency dependency = new AssetsFileDependency();
         dependency.Read(reader);
         dependencies.Add(dependency);
     }
 }
 public ulong Read(ulong absFilePos, AssetsFileReader reader, uint format, bool bigEndian)
 {
     dependencyCount = reader.ReadUInt32();
     pDependencies   = new AssetsFileDependency[dependencyCount];
     for (int i = 0; i < dependencyCount; i++)
     {
         AssetsFileDependency dependency = new AssetsFileDependency();
         dependency.Read(reader.Position, reader, bigEndian);
         pDependencies[i] = dependency;
     }
     return(reader.Position);
 }