dmitrysenkovich

Untitled

Aug 25th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: Constructor/Operations/ExportNavigationMesh.cs
  2. ===================================================================
  3. --- Constructor/Operations/ExportNavigationMesh.cs  (revision 0)
  4. +++ Constructor/Operations/ExportNavigationMesh.cs  (revision 6318)
  5. @@ -0,0 +1,18 @@
  6. +using System;
  7. +using System.Collections.Generic;
  8. +using System.Text;
  9. +using System.Windows.Forms;
  10. +using Tools;
  11. +using Tools.Util;
  12. +using System.IO;
  13. +
  14. +namespace TerrainConstructor.Constructor.Operations
  15. +{
  16. +    public class ExportNavigationMesh: Operation
  17. +    {
  18. +        public ExportNavigationMesh()
  19. +            : base("Navigation Mesh")
  20. +        {
  21. +        }
  22. +    }
  23. +}
  24. Index: Constructor/AppEnv.cs
  25. ===================================================================
  26. --- Constructor/AppEnv.cs   (revision 6317)
  27. +++ Constructor/AppEnv.cs   (revision 6318)
  28. @@ -594,6 +594,7 @@
  29.          public ExportDistricts exportDistricts = null;
  30.          public ExportAirfields exportAirfields = null;
  31.          public ExportRoutes exportRoutes = null;
  32. +        public ExportNavigationMesh exportNavigationMesh = null;
  33.          public ExportForests exportForests = null;
  34.          public ExportReferences exportReferences = null;
  35.          public ExportSurfaceDetails exportSurfaceDetails = null;
  36. @@ -709,6 +710,9 @@
  37.              exportRoutes = new ExportRoutes();
  38.              ExportOperations.Add(exportRoutes);
  39.  
  40. +            exportNavigationMesh = new ExportNavigationMesh();
  41. +            ExportOperations.Add(exportNavigationMesh);
  42. +
  43.              exportSuperficial = new ExportSuperficial();
  44.              ExportOperations.Add(exportSuperficial);
  45.  
  46. @@ -819,6 +823,11 @@
  47.              RunOperations("Routes", new Operation[] { exportRoutes });
  48.          }
  49.  
  50. +        public void RunExportNavigationMesh()
  51. +        {
  52. +            RunOperations("Navigation Mesh", new Operation[] { exportNavigationMesh });
  53. +        }
  54. +
  55.          public void RunExportForests()
  56.          {
  57.              RunOperations("Forests", new Operation[] { exportForests });
  58. Index: Constructor/UI/MainWindow.Designer.cs
  59. ===================================================================
  60. --- Constructor/UI/MainWindow.Designer.cs   (revision 6317)
  61. +++ Constructor/UI/MainWindow.Designer.cs   (revision 6318)
  62. @@ -65,6 +65,7 @@
  63.              this.toolStripMenuBuildVectorData5 = new System.Windows.Forms.ToolStripMenuItem();
  64.              this.buildTownsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  65.              this.buildSurfaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  66. +            this.buildNavigationMeshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  67.              this.buildDistrictsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  68.              this.buildScenesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  69.              this.buildDetailsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  70. @@ -544,6 +545,7 @@
  71.              this.buildForestsToolStripMenuItem,
  72.              this.buildAirfieldsToolStripMenuItem,
  73.              this.buildRoutesToolStripMenuItem,
  74. +            this.buildNavigationMeshToolStripMenuItem,
  75.              this.buildSurfaceDetailsToolStripMenuItem,
  76.              this.buildSuperficialToolStripMenuItem,
  77.              this.buildCloudsToolStripMenuItem});
  78. @@ -672,6 +674,13 @@
  79.              this.buildSurfaceToolStripMenuItem.Text = "Build Surface";
  80.              this.buildSurfaceToolStripMenuItem.Click += new System.EventHandler(this.buildSurfaceToolStripMenuItem_Click);
  81.              //
  82. +            // buildNavigationMeshToolStripMenuItem
  83. +            //
  84. +            this.buildNavigationMeshToolStripMenuItem.Name = "buildNavigationMeshToolStripMenuItem";
  85. +            this.buildNavigationMeshToolStripMenuItem.Size = new System.Drawing.Size(199, 22);
  86. +            this.buildNavigationMeshToolStripMenuItem.Text = "Build Navigation Mesh";
  87. +            this.buildNavigationMeshToolStripMenuItem.Click += new System.EventHandler(this.buildNavigationMeshToolStripMenuItem_Click);
  88. +            //
  89.              // buildDistrictsToolStripMenuItem
  90.              //
  91.              this.buildDistrictsToolStripMenuItem.Name = "buildDistrictsToolStripMenuItem";
  92. @@ -2911,5 +2920,6 @@
  93.          private System.Windows.Forms.ToolStripMenuItem airfieldSettingsToolStripMenuItem;
  94.          private System.Windows.Forms.ToolStripSeparator toolStripSeparator47;
  95.          private System.Windows.Forms.ToolStripMenuItem buildAirfieldsToolStripMenuItem;
  96. +        private System.Windows.Forms.ToolStripMenuItem buildNavigationMeshToolStripMenuItem;
  97.      }
  98.  }
  99. Index: Constructor/UI/MainWindow.cs
  100. ===================================================================
  101. --- Constructor/UI/MainWindow.cs    (revision 6317)
  102. +++ Constructor/UI/MainWindow.cs    (revision 6318)
  103. @@ -3923,6 +3923,11 @@
  104.              {
  105.              }
  106.          }
  107. +
  108. +        private void buildNavigationMeshToolStripMenuItem_Click(object sender, EventArgs e)
  109. +        {
  110. +            appEnv.RunExportNavigationMesh();
  111. +        }
  112.      }
  113.  
  114.  
  115. Index: Constructor/UI/MainWindow.resx
  116. ===================================================================
  117. --- Constructor/UI/MainWindow.resx  (revision 6317)
  118. +++ Constructor/UI/MainWindow.resx  (revision 6318)
  119. @@ -902,7 +902,7 @@
  120.          AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
  121. "Constructor\Operations\BuildLibrary.cs" />
  122. +    <Compile Include="Constructor\Operations\ExportNavigationMesh.cs" />
  123.      <Compile Include="Constructor\Operations\ExportAirfields.cs" />
  124.      <Compile Include="Constructor\Operations\ExportVectorData5.cs" />
  125.      <Compile Include="Constructor\Operations\DumpReference.cs" />
Advertisement
Add Comment
Please, Sign In to add comment