예제 #1
0
 //============================================================
 // <T>导出全部</T>
 //============================================================
 public void TaskExportAll()
 {
     // 清除文件
     RDirectory.Clear(_exportDirectory);
     // 导出模板
     foreach (INamePair <FDrCamera> pair in _cameras)
     {
         FRsExportTask task = new FRsExportTask();
         task.Label    = pair.Value.TypeLabel;
         task.Exporter = pair.Value;
         RMoCore.TaskConsole.Push(task);
     }
 }
예제 #2
0
 //============================================================
 // <T>导出所有资源。</T>
 //
 // @param modeCd 导出模式
 //============================================================
 public void TaskExportAll(ERsExportMode modeCd)
 {
     // 清除导出目录
     RDirectory.Clear(_exportDirectory);
     // 导出资源
     foreach (FRsResource resource in _resources.Values)
     {
         //if (!resource.OptionExport) {
         //   continue;
         //}
         if (resource is FRsResourcePicture)
         {
             FRsExportTask task = new FRsExportTask();
             task.Exporter = resource;
             task.ModeCd   = modeCd;
             RMoCore.TaskConsole.Push(task);
         }
         if (resource is FRsResourceAnimation)
         {
             FRsExportTask task = new FRsExportTask();
             task.Exporter = resource;
             task.ModeCd   = modeCd;
             RMoCore.TaskConsole.Push(task);
         }
         if (resource is FRsResourceSound)
         {
             FRsExportTask task = new FRsExportTask();
             task.Exporter = resource;
             task.ModeCd   = modeCd;
             RMoCore.TaskConsole.Push(task);
         }
         if (resource is FRsResourceMusic)
         {
             FRsExportTask task = new FRsExportTask();
             task.Exporter = resource;
             task.ModeCd   = modeCd;
             RMoCore.TaskConsole.Push(task);
         }
     }
 }
예제 #3
0
 //============================================================
 // <T>清空导出目录。</T>
 //============================================================
 public void ExportDirectoryClear()
 {
     RDirectory.Clear(RContent3dManager.TextureConsole.ExportDirectory);
 }