Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: Constructor/Operations/ExportNavigationMesh.cs
- ===================================================================
- --- Constructor/Operations/ExportNavigationMesh.cs (revision 0)
- +++ Constructor/Operations/ExportNavigationMesh.cs (revision 6318)
- @@ -0,0 +1,18 @@
- +using System;
- +using System.Collections.Generic;
- +using System.Text;
- +using System.Windows.Forms;
- +using Tools;
- +using Tools.Util;
- +using System.IO;
- +
- +namespace TerrainConstructor.Constructor.Operations
- +{
- + public class ExportNavigationMesh: Operation
- + {
- + public ExportNavigationMesh()
- + : base("Navigation Mesh")
- + {
- + }
- + }
- +}
- Index: Constructor/AppEnv.cs
- ===================================================================
- --- Constructor/AppEnv.cs (revision 6317)
- +++ Constructor/AppEnv.cs (revision 6318)
- @@ -594,6 +594,7 @@
- public ExportDistricts exportDistricts = null;
- public ExportAirfields exportAirfields = null;
- public ExportRoutes exportRoutes = null;
- + public ExportNavigationMesh exportNavigationMesh = null;
- public ExportForests exportForests = null;
- public ExportReferences exportReferences = null;
- public ExportSurfaceDetails exportSurfaceDetails = null;
- @@ -709,6 +710,9 @@
- exportRoutes = new ExportRoutes();
- ExportOperations.Add(exportRoutes);
- + exportNavigationMesh = new ExportNavigationMesh();
- + ExportOperations.Add(exportNavigationMesh);
- +
- exportSuperficial = new ExportSuperficial();
- ExportOperations.Add(exportSuperficial);
- @@ -819,6 +823,11 @@
- RunOperations("Routes", new Operation[] { exportRoutes });
- }
- + public void RunExportNavigationMesh()
- + {
- + RunOperations("Navigation Mesh", new Operation[] { exportNavigationMesh });
- + }
- +
- public void RunExportForests()
- {
- RunOperations("Forests", new Operation[] { exportForests });
- Index: Constructor/UI/MainWindow.Designer.cs
- ===================================================================
- --- Constructor/UI/MainWindow.Designer.cs (revision 6317)
- +++ Constructor/UI/MainWindow.Designer.cs (revision 6318)
- @@ -65,6 +65,7 @@
- this.toolStripMenuBuildVectorData5 = new System.Windows.Forms.ToolStripMenuItem();
- this.buildTownsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.buildSurfaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- + this.buildNavigationMeshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.buildDistrictsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.buildScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.buildDetailsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- @@ -544,6 +545,7 @@
- this.buildForestsToolStripMenuItem,
- this.buildAirfieldsToolStripMenuItem,
- this.buildRoutesToolStripMenuItem,
- + this.buildNavigationMeshToolStripMenuItem,
- this.buildSurfaceDetailsToolStripMenuItem,
- this.buildSuperficialToolStripMenuItem,
- this.buildCloudsToolStripMenuItem});
- @@ -672,6 +674,13 @@
- this.buildSurfaceToolStripMenuItem.Text = "Build Surface";
- this.buildSurfaceToolStripMenuItem.Click += new System.EventHandler(this.buildSurfaceToolStripMenuItem_Click);
- //
- + // buildNavigationMeshToolStripMenuItem
- + //
- + this.buildNavigationMeshToolStripMenuItem.Name = "buildNavigationMeshToolStripMenuItem";
- + this.buildNavigationMeshToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
- + this.buildNavigationMeshToolStripMenuItem.Text = "Build Navigation Mesh";
- + this.buildNavigationMeshToolStripMenuItem.Click += new System.EventHandler(this.buildNavigationMeshToolStripMenuItem_Click);
- + //
- // buildDistrictsToolStripMenuItem
- //
- this.buildDistrictsToolStripMenuItem.Name = "buildDistrictsToolStripMenuItem";
- @@ -2911,5 +2920,6 @@
- private System.Windows.Forms.ToolStripMenuItem airfieldSettingsToolStripMenuItem;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator47;
- private System.Windows.Forms.ToolStripMenuItem buildAirfieldsToolStripMenuItem;
- + private System.Windows.Forms.ToolStripMenuItem buildNavigationMeshToolStripMenuItem;
- }
- }
- Index: Constructor/UI/MainWindow.cs
- ===================================================================
- --- Constructor/UI/MainWindow.cs (revision 6317)
- +++ Constructor/UI/MainWindow.cs (revision 6318)
- @@ -3923,6 +3923,11 @@
- {
- }
- }
- +
- + private void buildNavigationMeshToolStripMenuItem_Click(object sender, EventArgs e)
- + {
- + appEnv.RunExportNavigationMesh();
- + }
- }
- Index: Constructor/UI/MainWindow.resx
- ===================================================================
- --- Constructor/UI/MainWindow.resx (revision 6317)
- +++ Constructor/UI/MainWindow.resx (revision 6318)
- @@ -902,7 +902,7 @@
- AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
- "Constructor\Operations\BuildLibrary.cs" />
- + <Compile Include="Constructor\Operations\ExportNavigationMesh.cs" />
- <Compile Include="Constructor\Operations\ExportAirfields.cs" />
- <Compile Include="Constructor\Operations\ExportVectorData5.cs" />
- <Compile Include="Constructor\Operations\DumpReference.cs" />
Advertisement
Add Comment
Please, Sign In to add comment