Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: AppEnv.cs
- ===================================================================
- --- AppEnv.cs (revision 6363)
- +++ AppEnv.cs (working copy)
- @@ -235,6 +235,24 @@
- set { vars["VECTORDATA5_OUTPUT_LNKD"].Value = value; }
- }
- + public string surfaceL0OutputDir = string.Empty;
- +
- + public string SurfaceL0OutputDir
- + {
- + get
- + {
- + if (customTerrainName != null)
- + {
- + if (terrainConfig.VectorData5)
- + return (surfaceL0OutputDir + @"export-lsa4-with-vector-data-5\");
- + else
- + return (surfaceL0OutputDir + @"export-surface\");
- + }
- +
- + return null;
- + }
- + }
- +
- public string RrrSceneOutput
- {
- get { return vars["RRR_SCENE_OUTPUT"].StringValue; }
- Index: Operations/ExportNavigationMesh.cs
- ===================================================================
- --- Operations/ExportNavigationMesh.cs (revision 6363)
- +++ Operations/ExportNavigationMesh.cs (working copy)
- @@ -14,5 +14,20 @@
- : base("Navigation Mesh")
- {
- }
- +
- + public override bool RunImp(Task task, AppEnv appEnv, bool withChildren)
- + {
- +
- + Command command = new Command();
- + command.Type = Command.CommandType.EDTU4;
- + command.EdtuCommand = "build-navigation-mesh";
- + string surfaceL0filename = appEnv.SurfaceL0OutputDir + "surface-L0.ofsh";
- + string navMeshfilename = appEnv.terrainConfig.TerrainCfgDir.AbsoluteByRelativeTcons() + "navigationMesh.navmesh";
- + command.Args = surfaceL0filename + " " + navMeshfilename;
- + command.ErrorsFile = appEnv.SurfaceL0OutputDir + @"export-vector-data_errors.ofsh";
- + task.AddCommand(command);
- +
- + return true;
- + }
- }
- }
- Index: Operations/TerrainConfig.cs
- ===================================================================
- --- Operations/TerrainConfig.cs (revision 6363)
- +++ Operations/TerrainConfig.cs (working copy)
- @@ -305,6 +305,7 @@
- AddNewFileVariableIfNotFound(appEnv.vars, "RRR_OUTPUT");
- AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT");
- AddNewFileVariableIfNotFound(appEnv.vars, "VECTORDATA5_OUTPUT_LNKD");
- + AddNewFileVariableIfNotFound(appEnv.vars, "SURFACE_L0_OUTPUT");
- AddNewFileVariableIfNotFound(appEnv.vars, "RRR_SCENE_OUTPUT");
- AddNewFileVariableIfNotFound(appEnv.vars, "RRR_DETAILS_OUTPUT");
- AddNewFileVariableIfNotFound(appEnv.vars, "RRR_POWERLINES_OUTPUT");
- @@ -403,6 +404,8 @@
- appEnv.ReferenceExternals = terrainCfgDir + @"SurfaceDetails\" + appEnv.TerrainName + ".external.ofsh";
- appEnv.TreePreviewArchive = terrainCfgDir + @"SurfaceDetails\Trees.preview.zip";
- + appEnv.surfaceL0OutputDir = appEnv.TConsPath + @"\Temp\" + appEnv.TerrainName + @"\";
- +
- System.IO.DirectoryInfo dirInfo = null;
- try
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement