示例#1
0
 /// <summary>
 /// Doesn't actually add a file, but instead reserves space, then splits the unity blob normally as if it
 /// was a real file that was added.  See the comment above FileCollection.AddVirtualFile() for more info.
 /// </summary>
 /// <param name="File">The file to add virtually.  Only the size of the file is tracked.</param>
 public void AddVirtualFile(FileItem File)
 {
     CurrentCollection.AddVirtualFile(File.Info.Length);
     if (SplitLength != -1 && CurrentCollection.VirtualLength > SplitLength)
     {
         EndCurrentUnityFile();
     }
 }