View difference between Paste ID: 2Gm2TpfN and ENyaV9sY
SHOW: | | - or go back to the newest paste.
1
Index: Constructor/Operations/ExportNavigationMesh.cs
2
===================================================================
3-
--- Constructor/Operations/ExportNavigationMesh.cs	(revision 0)
3+
--- Constructor/Operations/ExportNavigationMesh.cs	(revision 6363)
4-
+++ Constructor/Operations/ExportNavigationMesh.cs	(revision 6318)
4+
+++ Constructor/Operations/ExportNavigationMesh.cs	(working copy)
5-
@@ -0,0 +1,18 @@
5+
@@ -14,5 +14,20 @@
6-
+using System;
6+
             : base("Navigation Mesh")
7-
+using System.Collections.Generic;
7+
8-
+using System.Text;
8+
9-
+using System.Windows.Forms;
9+
10-
+using Tools;
10+
+        public override bool RunImp(Task task, AppEnv appEnv, bool withChildren)
11-
+using Tools.Util;
11+
12-
+using System.IO;
12+
+            string tempDir = appEnv.TempDir + @"export-lsa4-with-vector-data-5\";
13
+
14-
+namespace TerrainConstructor.Constructor.Operations
14+
+            Command command = null;
15-
+{
15+
+            command = new Command();
16-
+    public class ExportNavigationMesh: Operation
16+
+            command.Type = Command.CommandType.EDTU4;
17-
+    {
17+
+            command.EdtuCommand = "build-navigation-mesh";
18-
+        public ExportNavigationMesh()
18+
+            command.Args = tempDir + "surface-L0.ofsh" + " D:\\huhu.ofsh";                
19-
+            : base("Navigation Mesh")
19+
+            command.ErrorsFile = tempDir + @"export-vector-data_errors.ofsh";
20
+            task.AddCommand(command);
21
+
22-
+    }
22+
+            return true;
23-
+}
23+
24-
Index: Constructor/AppEnv.cs
24+
25
 }