Esempio n. 1
0
 public void Export(IExportContainer container, Object asset, string path)
 {
     using (FileStream fileStream = new FileStream(path, FileMode.CreateNew, FileAccess.Write))
     {
         asset.ExportBinary(container, fileStream);
     }
 }
Esempio n. 2
0
 public void Export(IExportContainer container, Object asset, string path, Action <IExportContainer, Object, string> callback)
 {
     using (FileStream fileStream = new FileStream(path, FileMode.CreateNew, FileAccess.Write))
     {
         asset.ExportBinary(container, fileStream);
     }
     callback?.Invoke(container, asset, path);
 }